Re: Bug with UTF-8 character
От | Marko Kreen |
---|---|
Тема | Re: Bug with UTF-8 character |
Дата | |
Msg-id | e51f66da0605260716j7d9b13c9y271974e031f11b61@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Bug with UTF-8 character (Martijn van Oosterhout <kleptog@svana.org>) |
Ответы |
Re: Bug with UTF-8 character
|
Список | pgsql-hackers |
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
В списке pgsql-hackers по дате отправления: