Tatsuo Ishii <[EMAIL PROTECTED]> writes: > PQescapebytea() is not multibyte aware and will produce bad multibyte > character sequences. Example: > I think 0x89 should be converted to '\\211' since 0x89 of 0x8950 is > considered as "non printable characters".
Hmm, so essentially we'd have to convert all codes >= 0x80 to prevent them from being mistaken for parts of multibyte sequences? Ugh, but you're probably right. It looks to me like byteaout does the reverse already. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org