Re: Bug with UTF-8 character - Mailing list pgsql-hackers

From Marko Kreen
Subject Re: Bug with UTF-8 character
Date
Msg-id e51f66da0605260716j7d9b13c9y271974e031f11b61@mail.gmail.com
Whole thread Raw
In response to Re: Bug with UTF-8 character  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Bug with UTF-8 character
List 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 by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Bug with UTF-8 character
Next
From: Andreas Pflug
Date:
Subject: Re: XLogArchivingActive