Re: [GENERAL] Encoding problem using pg_dumpall

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Moshe Ben-Shoham" <mosheb(at)nexperience(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [GENERAL] Encoding problem using pg_dumpall
Date: 2009-01-29 15:16:16
Message-ID: 28817.1233242176@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

"Moshe Ben-Shoham" <mosheb(at)nexperience(dot)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.)

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Magnus Hagander 2009-01-29 17:31:49 Re: [GENERAL] Encoding problem using pg_dumpall
Previous Message Devrim GÜNDÜZ 2009-01-29 14:06:20 Re: finding dev rpms

Browse pgsql-general by date

  From Date Subject
Next Message Mark Styles 2009-01-29 15:18:22 Changing owner of pg_toast tables
Previous Message Grzegorz Jaśkiewicz 2009-01-29 15:09:34 Re: Text search segmentation fault