|
1 | 1 | /*
|
2 | 2 | * conversion functions between pg_wchar and multibyte streams.
|
3 | 3 | * Tatsuo Ishii
|
4 |
| - * $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.55 2006/05/21 20:05:19 tgl Exp $ |
| 4 | + * $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.56 2006/08/22 03:30:20 momjian Exp $ |
5 | 5 | *
|
6 | 6 | * WIN1250 client encoding updated by Pavel Behal
|
7 | 7 | *
|
@@ -1486,7 +1486,10 @@ report_invalid_encoding(int encoding, const char *mbstr, int len)
|
1486 | 1486 | (errcode(ERRCODE_CHARACTER_NOT_IN_REPERTOIRE),
|
1487 | 1487 | errmsg("invalid byte sequence for encoding \"%s\": 0x%s",
|
1488 | 1488 | pg_enc2name_tbl[encoding].name,
|
1489 |
| -buf))); |
| 1489 | +buf), |
| 1490 | +errhint("This failure can also happen if the byte sequence does not " |
| 1491 | +"match the encoding expected by the server, which is controlled " |
| 1492 | +"by \"client_encoding\"."))); |
1490 | 1493 | }
|
1491 | 1494 |
|
1492 | 1495 | /*
|
|