Re: Unicode support

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Unicode support
Дата
Msg-id 49E3950E.8020800@dunslane.net
обсуждение исходный текст
Ответ на Re: Unicode support  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Unicode support
Re: Unicode support
Список pgsql-hackers

Alvaro Herrera wrote:
> - - wrote:
>
>   
>> 1) Functions like char_length() or length() do NOT return the number
>> of characters (the manual says they do), instead they return the
>> number of code points.
>>     
>
> I think you have client_encoding misconfigured.
>
> alvherre=# select length('á'::text);
>  length 
> --------
>       1
> (1 fila)
>
>
>   

Umm, but isn't that because your encoding is using one code point?

See the OP's explanation w.r.t. canonical equivalence.

This isn't about the number of bytes, but about whether or not we should 
count characters encoded as two or more combined code points as a single 
char or not.

cheers

andrew




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