Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6E83C1C5E16A for ; Sun, 27 Nov 2011 04:59:53 -0400 (AST) Received: from mail-iy0-f174.google.com ([209.85.210.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RUaaV-0001jk-Vx for pgsql-bugs@postgresql.org; Sun, 27 Nov 2011 08:59:53 +0000 Received: by iage36 with SMTP id e36so7118628iag.19 for ; Sun, 27 Nov 2011 00:59:38 -0800 (PST) Received: by 10.42.19.195 with SMTP id d3mr18962108icb.21.1322384378778; Sun, 27 Nov 2011 00:59:38 -0800 (PST) Received: from ayaki.localdomain (124-169-45-65.dyn.iinet.net.au. [124.169.45.65]) by mx.google.com with ESMTPS id dd36sm28680863ibb.7.2011.11.27.00.59.36 (version=SSLv3 cipher=OTHER); Sun, 27 Nov 2011 00:59:37 -0800 (PST) Message-ID: <4ED1FBF6.2030101@ringerc.id.au> Date: Sun, 27 Nov 2011 16:59:34 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: Thomas Goerner CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6308: Problem w. encoding in client References: <201111251221.pAPCLjDe059957@wwwmaster.postgresql.org> In-Reply-To: <201111251221.pAPCLjDe059957@wwwmaster.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201111/185 X-Sequence-Number: 31780 On 11/25/2011 08:21 PM, Thomas Goerner wrote: > > The following bug has been logged online: > > Bug reference: 6308 > Logged by: Thomas Goerner > Email address: tg@clickware.de > PostgreSQL version: 9.1.1 > Operating system: Windows 7 64-bit > Description: Problem w. encoding in client > Details: > > Hi, we have a problem regarding encoding with postgres 9.1.1 and Win7 > 64-bit > > Database encoding: UTF-8 > active codepage in Windows console: 1252 > PGCLIENTENCODING: Win1252 > Console font: Lucida console > > In the above configuration, the following problems occur: > > 1) > Text output from the client applications, e.g. the welcome-prompt of psql or > the help page from pg_dump --help is not displayed correctly (especially > german Umlauts and characters like "«" ). That shouldn't be happening. As a workaround, try using a unicode console (see the "chcp" command) and a unicode client encoding. The issue with mismatched chars sounds like a real bug that wants looking into. > When we restore a dump in custom format and then try to re-dump the > database, we get error messages like Zeichen 0xe28093 in Kodierung »UTF8« > hat keine Entsprechung in »Win1252« (character 0xe28093 in UTF-8 cannot be > translated to Win1252) Restore using PgAdmin III or using a unicode console. This is a limitation of using a Win1252 client encoding when restoring data that isn't restricted to Win1252 and cannot be fixed directly. If you don't mind possibly corrupted error and NOTICE messages you can just set a unicode client_encoding for your restore. -- Craig Ringer