Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 243281AB3538 for ; Wed, 18 Jul 2012 04:22:31 -0300 (ADT) Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SrOab-0000KI-Mn for pgsql-bugs@postgresql.org; Wed, 18 Jul 2012 07:22:30 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SrOaM-0007YG-Be for pgsql-bugs@postgresql.org; Wed, 18 Jul 2012 09:22:14 +0200 Received: from 217.110.94.67 ([217.110.94.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jul 2012 09:22:14 +0200 Received: from spam_eater by 217.110.94.67 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jul 2012 09:22:14 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-bugs@postgresql.org From: Thomas Kellerer Subject: Re: BUG #6742: pg_dump doesn't convert encoding of DB object names to OS encoding Date: Wed, 18 Jul 2012 09:21:53 +0200 Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 217.110.94.67 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: X-Pg-Spam-Score: 0.3 (/) X-Archive-Number: 201207/146 X-Sequence-Number: 33622 exclusion@gmail.com, 18.07.2012 09:17: > The following bug has been logged on the website: > > Bug reference: 6742 > Logged by: Alexander LAW > Email address: exclusion@gmail.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