Re: Support for unicode

Поиск
Список
Период
Сортировка
От Björn Metzdorf
Тема Re: Support for unicode
Дата
Msg-id 019801c2bd68$883e7c00$81c206d4@office.turtleentertainment.de
обсуждение исходный текст
Ответ на Support for unicode  ("Carmen Wai" <wai_carmen@hotmail.com>)
Список pgsql-general
> Do any one know how to input unicode data into the postgreSQL database
> through the PostgreSQL client API? Are there any special API which support
> the wide characters??

Have a look at http://www.postgresql.org/idocs/index.php?multibyte.html

What you can do is transform your characters properly to UTF-8 and then
insert them as normal having server and client encoding set to UNICODE.

What you can also do: Don't transform them to UTF-8, but set your
client_encoding to desired value (see the link above) and use the automatic
encoding translation between server and client. They will be automagically
translated to UNICODE (UTF-8).

Regards,
Bjoern



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

Предыдущее
От: "Carmen Wai"
Дата:
Сообщение: Support for unicode
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: three timestamps/table, use of 'now' in table creation statement