Re: Database encoding

Поиск
Список
Период
Сортировка
От valgog
Тема Re: Database encoding
Дата
Msg-id 0302d94a-7a8e-46cc-bc47-c6b02623c38c@r15g2000prd.googlegroups.com
обсуждение исходный текст
Ответ на PostgreSQL and ZFS  (Thomas Bräutigam <thomas.braeutigam@nexustelecom.com>)
Список pgsql-admin
On Sep 3, 3:40 pm, a...@personal.net.py ("Anibal David Acosta") wrote:
> Hello, I have a postgresql installed with encoding "WIN1252".
>
> But I need to create a DB with LATIN1 encoding, when I try I got the error:
> "Encoding Latin1 does not match server's locale Spanish_Spain.1252. The
> servers's LC_CTYPE setting require encoding WIN1252
>
> Is possible to change the server encoding to LATIN1?
>
> Thanks for your help!

You should use the same encoding for your DB instance as you used when
creating a DB with initdb. Usually it makes sense to always use UTF8
as your encoding... in case you will need some non-LATIN1
characters... you can check which encoding was used when creating a DB
with show lc_ctype...

Regards,

-- Valentine

P.S.: there are many posts related to that issue. You can look up a
BUG mailing list for collate and encoding.

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

Предыдущее
От: "Larry Rosenman"
Дата:
Сообщение: Re: PostgreSQL and ZFS
Следующее
От: Carol Walter
Дата:
Сообщение: Database Conversion