Re: Unicode support
| От | Alvaro Herrera |
|---|---|
| Тема | Re: Unicode support |
| Дата | |
| Msg-id | 20090413192814.GH7709@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Unicode support (- - <crossroads0000@googlemail.com>) |
| Ответы |
Re: Unicode support
Re: Unicode support |
| Список | pgsql-hackers |
- - 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)
alvherre=# select pg_column_size('á');pg_column_size
---------------- 3
(1 fila)
(there's one byte of overhead here, so á is two bytes)
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-hackers по дате отправления: