Re: Unicode support

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Unicode support
Дата
Msg-id 20090413192814.GH7709@alvh.no-ip.org
обсуждение исходный текст
Ответ на Unicode support  (- - <crossroads0000@googlemail.com>)
Ответы Re: Unicode support  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Re: Unicode support  (Andrew Dunstan <andrew@dunslane.net>)
Список 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 по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: proposal: add columns created and altered to pg_proc and pg_class
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Regression failure on RHEL 4 w/ PostgreSQL 8.4 beta1