pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Thomas Goerner <tg@clickware.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6308: Problem w. encoding in client
Date: Sun, 27 Nov 2011 16:59:34 +0800
Message-ID: <4ED1FBF6.2030101@ringerc.id.au> (raw)
In-Reply-To: <201111251221.pAPCLjDe059957@wwwmaster.postgresql.org>
References: <201111251221.pAPCLjDe059957@wwwmaster.postgresql.org>

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



view thread (5+ messages)  latest in thread

Message-ID: <4ED1FBF6.2030101@ringerc.id.au>
Permalink:  ../4ED1FBF6.2030101@ringerc.id.au/
Also on:    postgresql.org/message-id/4ED1FBF6.2030101@ringerc.id.au

 · 

reply

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: ringerc@ringerc.id.au, tg@clickware.de
  Subject: Re: BUG #6308: Problem w. encoding in client
  In-Reply-To: <4ED1FBF6.2030101@ringerc.id.au>
  References: <201111251221.pAPCLjDe059957@wwwmaster.postgresql.org> <4ED1FBF6.2030101@ringerc.id.au>

* 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