Re: [HACKERS] UTF-8 safe ascii() function

Поиск
Список
Период
Сортировка
От Jean-Michel POURE
Тема Re: [HACKERS] UTF-8 safe ascii() function
Дата
Msg-id 200205192008.18893.jm.poure@freesurf.fr
обсуждение исходный текст
Ответ на Re: [HACKERS] UTF-8 safe ascii() function  (Patrice Hédé <phede-ml@islande.org>)
Ответы Re: [HACKERS] UTF-8 safe ascii() function  (Patrice Hédé <phede-ml@islande.org>)
Список pgsql-general
Le Dimanche 19 Mai 2002 11:44, Patrice Hédé a écrit :
> The function is taking the first character of a TEXT element, and
> returns its UCS2 value. I just did some basic test (i.e. I have not
> tried with 3 or 4 bytes UTF-8 chars). The function is following the
> Unicode 3.2 spec.

Hi Patrice,

I tried a Japanese character :
SELECT utf8toucs2 ('支'::text) which returns -1

Do you know why it does not return the UCS-2 value?

Cheers,
Jean-Michel POURE

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Walking a view to find all source tables
Следующее
От: Patrice Hédé
Дата:
Сообщение: Re: [HACKERS] UTF-8 safe ascii() function