On 5/26/06, Martijn van Oosterhout <kleptog@svana.org> wrote:
On Fri, May 26, 2006 at 08:21:56AM +0200, Hans-Jürgen Schönig wrote: > I got a bug request for the following unicode character in PostgreSQL > 8.1.4: 0xedaeb8 > > ERROR: invalid byte sequence for encoding "UTF8": 0xedaeb8
Your character converts to char DBB8. According to the standard, characters in the range D800-DFFF are not characters but surrogates. They don't mean anything by themselves and are thus rejected by postgres. http://www.unicode.org/faq/utf_bom.html#30 This character should be preceded by a low surrogate (D800-DBFF). You should combine the two into a single 4-byte UTF-8 character.
You are talking about UTF16, not UTF8. -- marko ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq