Surrogate pairs in UTF-8 - Mailing list pgsql-general

From Dave Rosckes
Subject Surrogate pairs in UTF-8
Date
Msg-id CAEtyQx0KtCin3axb4LfOk9KRJeQ9zs7ABLQ3UrN2pgcG6QZ85g@mail.gmail.com
Whole thread Raw
Responses Re: Surrogate pairs in UTF-8  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
I have written a test program using postgres that creates a string with a surrogate pair.  I then insert that string into a varchar property in a table.

I then execute a select statement to pull the string out.  But when I evaluate the string the lead char of the pair is correct, but the following pair value is mangled.  I run this exact same code using DB2 and it works just fine.

Is this a postgres limitation, or is there a specific way surrogate pairs need to be handled?

Thanks,


pgsql-general by date:

Previous
From: Daniel Begin
Date:
Subject: Re: Indexing large table of coordinates with GiST
Next
From: Chris Mair
Date:
Subject: Re: Out of Memory