Re: Unicode support

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: Unicode support
Дата
Msg-id
200904141532.44618.peter_e@gmx.net
Ответ на
Re: Unicode support (Andrew Dunstan)
Список
Дерево обсуждения
Unicode support - - <crossroads0000@googlemail.com>
Re: Unicode support Alvaro Herrera <alvherre@commandprompt.com>
Re: Unicode support "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Unicode support Andrew Dunstan <andrew@dunslane.net>
Re: Unicode support Peter Eisentraut <peter_e@gmx.net>
Re: Unicode support Greg Stark <stark@enterprisedb.com>
Re: Unicode support Tom Lane <tgl@sss.pgh.pa.us>
Re: Unicode support Peter Eisentraut <peter_e@gmx.net>
Re: Unicode support "David E. Wheeler" <david@kineticode.com>
Re: Unicode support Andrew Dunstan <andrew@dunslane.net>
Re: Unicode support Tom Lane <tgl@sss.pgh.pa.us>
Re: Unicode support "David E. Wheeler" <david@kineticode.com>
Re: Unicode support Martijn van Oosterhout <kleptog@svana.org>
Re: Unicode support - - <crossroads0000@googlemail.com>
Re: Unicode support Peter Eisentraut <peter_e@gmx.net>
Re: Unicode support "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Unicode support Andrew Dunstan <andrew@dunslane.net>
Re: Unicode support Tom Lane <tgl@sss.pgh.pa.us>
Re: Unicode support Greg Stark <stark@enterprisedb.com>
Re: Unicode support Tom Lane <tgl@sss.pgh.pa.us>
Re: Unicode support - - <crossroads0000@googlemail.com>
Re: Unicode support Gregory Stark <stark@enterprisedb.com>
Re: Unicode support Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Unicode support Peter Eisentraut <peter_e@gmx.net>
Re: Unicode support Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Unicode support Andrew Dunstan <andrew@dunslane.net>
Re: Unicode support Peter Eisentraut <peter_e@gmx.net>
Re: Unicode support Peter Eisentraut <peter_e@gmx.net>
Re: Unicode support Tom Lane <tgl@sss.pgh.pa.us>
Re: Unicode support Peter Eisentraut <peter_e@gmx.net>
On Monday 13 April 2009 22:39:58 Andrew Dunstan wrote:
> 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.

Here is a test case that shows the problem (if your terminal can display 
combining characters (xterm appears to work)):

SELECT U&'\00E9', char_length(U&'\00E9');?column? | char_length
----------+-------------é        |           1
(1 row)

SELECT U&'\0065\0301', char_length(U&'\0065\0301');?column? | char_length 
----------+-------------é        |           2
(1 row)


В списке pgsql-hackers по дате отправления
От: Andrew Dunstan
Дата:
От: Peter Eisentraut
Дата:
Сообщение: Re: Unicode support
FAQ