Surrogate pairs in UTF-8

Поиск
Список
Период
Сортировка
От Dave Rosckes
Тема Surrogate pairs in UTF-8
Дата
Msg-id CAEtyQx0KtCin3axb4LfOk9KRJeQ9zs7ABLQ3UrN2pgcG6QZ85g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Surrogate pairs in UTF-8  (Martijn van Oosterhout <kleptog@svana.org>)
Список 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 по дате отправления:

Предыдущее
От: Daniel Begin
Дата:
Сообщение: Re: Indexing large table of coordinates with GiST
Следующее
От: Chris Mair
Дата:
Сообщение: Re: Out of Memory