Re: Encoding problem using pg_dumpall

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Encoding problem using pg_dumpall
Дата
Msg-id 4981E805.7040302@hagander.net
обсуждение исходный текст
Ответ на Re: Encoding problem using pg_dumpall  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Encoding problem using pg_dumpall
Список pgsql-general
Tom Lane wrote:
> "Moshe Ben-Shoham" <mosheb@nexperience.com> writes:
>> C:\Program Files\PostgreSQL\8.3\bin>pg_dumpall -U admint >
>> c:\temp\dbdump.sql
>> pg_dump: SQL command failed
>> pg_dump: Error message from server: ERROR:  character 0xd595 of encoding
>> "UTF8" has no equivalent in "WIN1252"
>
> Apparently you have WIN1252 set as the default client encoding, probably
> via an environment variable or locale setting.  Either get rid of it,
> or override it by including "-E UTF8" in the pg_dump command.
>
> (Hmm, actually it looks like pg_dumpall hasn't got a -E switch,
> which seems like an oversight.  So you need to fix your locale,
> or else use pg_dump directly.)

IIRC, you can't set the windows console to be UTF8. Thus, your option is
to switch to using pg_dump and use -E UTF8 on that one.

//Magnus

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Changing owner of pg_toast tables
Следующее
От: Jason Long
Дата:
Сообщение: Re: Pet Peeves?