Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id EF6E01AB3538 for ; Wed, 18 Jul 2012 05:51:51 -0300 (ADT) Received: from mail-lb0-f174.google.com ([209.85.217.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SrPz2-0000ye-Uq for pgsql-bugs@postgresql.org; Wed, 18 Jul 2012 08:51:50 +0000 Received: by lbbgm6 with SMTP id gm6so1802143lbb.19 for ; Wed, 18 Jul 2012 01:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=jrPFC8sXYcRL5uDQPVMgxqCzUjRJwoRH06Y7HQprjIU=; b=s0blsn0+2L/iNUWtubKOcOJHFDf8bEKh3wUehpM2t50JsfDAqOWaMXIQavhKmAFjQJ 82mcunxvlLlLbgIg+++mWufvcoBjJIbIxmQ0T16adIAKkgnT8cL2eC9nxHbrIlzJolsG B1uWnaWzjuFNnMdt+TJvmEL6d7CEBzAeMzC23MZk/6l10i3tTLWw+rrN0+PKyCpFjzpW ZvBdFl87QM6LdD1uWlID6PX7WM/9NxYO9t+xiyIPV9ue7tzl1JXneCWLWgDjeM0Fjsme 7vhvgS2hzqaZIyz8/Zcw1FT1JFunCeIIoVgkG3/44UABajBzNAc/KTCtWvtA24CT00il jbVw== Received: by 10.152.105.51 with SMTP id gj19mr2396392lab.38.1342601495763; Wed, 18 Jul 2012 01:51:35 -0700 (PDT) Received: from [1.0.0.7] ([94.138.26.200]) by mx.google.com with ESMTPS id j3sm4611044lbh.0.2012.07.18.01.51.33 (version=SSLv3 cipher=OTHER); Wed, 18 Jul 2012 01:51:34 -0700 (PDT) Message-ID: <50067916.8010508@gmail.com> Date: Wed, 18 Jul 2012 12:51:34 +0400 From: Alexander Law User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Pg Bugs Subject: Re: BUG #6742: pg_dump doesn't convert encoding of DB object names to OS encoding References: <1331925178-sup-9261@alvh.no-ip.org> <4F65A533.7090208@gmail.com> <1332187409-sup-4631@alvh.no-ip.org> In-Reply-To: <1332187409-sup-4631@alvh.no-ip.org> Content-Type: multipart/alternative; boundary="------------040800010409020700040005" X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201207/147 X-Sequence-Number: 33623 This is a multi-part message in MIME format. --------------040800010409020700040005 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------040800010409020700040005 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit 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




--------------040800010409020700040005--