From: Alexander Law <exclusion@gmail.com>
To: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6742: pg_dump doesn't convert encoding of DB object names to OS encoding
Date: Wed, 18 Jul 2012 12:51:34 +0400
Message-ID: <50067916.8010508@gmail.com> (raw)
In-Reply-To: <1332187409-sup-4631@alvh.no-ip.org>
References: <E1S3twb-0004OY-4g@wrigleys.postgresql.org>
<1331925178-sup-9261@alvh.no-ip.org>
<4F65A533.7090208@gmail.com>
<1332187409-sup-4631@alvh.no-ip.org>
Hello,
The dump file itself is correct. The issue is only with the non-ASCII
object names in pg_dump messages.
The messages text (which is non-ASCII too) displayed consistently with
right encoding (i.e. with OS encoding thanks to libintl/gettext), but
encoding of db object names depends on the dump encoding and thus
they're getting unreadable when different encoding is used.
The same can be reproduced in Linux (where console encoding is UTF-8)
when doing dump with Windows-1251 or Latin1 (for western european
languages).
Thanks,
Alexander
The following bug has been logged on the website:
Bug reference: 6742
Logged by: Alexander LAW
Email address: exclusion(at)gmail(dot)com
PostgreSQL version: 9.1.4
Operating system: Windows
Description:
When I try to dump database with UTF-8 encoding in Windows, I get unreadable
object names.
Please look at the screenshot (http://oi50.tinypic.com/2lw6ipf.jpg). On the
left window all the pg_dump messages displayed correctly (except for the
prompt password (bug #6510)), but the non-ASCII object name is gibberish. On
the right window (where dump is done with the Windows 1251 encoding (OS
Encoding for Russian locale)) everything is right.
Did you check the dump file using an editor that can handle UTF-8?
The Windows console is not known for properly handling that encoding.
Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: exclusion@gmail.com
Subject: Re: BUG #6742: pg_dump doesn't convert encoding of DB object names to OS encoding
In-Reply-To: <50067916.8010508@gmail.com>
References: <E1S3twb-0004OY-4g@wrigleys.postgresql.org> <1331925178-sup-9261@alvh.no-ip.org> <4F65A533.7090208@gmail.com> <1332187409-sup-4631@alvh.no-ip.org> <50067916.8010508@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox