Re: COPY-ing ASCII file into UTF-8 database

Поиск
Список
Период
Сортировка
От Tommy Gildseth
Тема Re: COPY-ing ASCII file into UTF-8 database
Дата
Msg-id 49D9A769.8020609@usit.uio.no
обсуждение исходный текст
Ответ на COPY-ing ASCII file into UTF-8 database  (Toomas Vendelin <pg@vendelin.com>)
Список pgsql-admin
Toomas Vendelin wrote:
>
> MY QUESTIONS:
>
> 1. What is the proper solution for importing data from plain ASCII
> files, that contain the type of characters mentioned above?

Set the correct client_encoding, before importing. Presumably the
Estonian characters are part of one of the flavours of LATIN 1-9

 > SET CLIENT_ENCODING='LATIN<X>'; -- Where you substitute <X> for the
correct number
 > \copy ....

--
Tommy Gildseth

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

Предыдущее
От: Toomas Vendelin
Дата:
Сообщение: COPY-ing ASCII file into UTF-8 database
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: how to do prefix_range default value?