Re: MULE_INTERNAL translation to win1250 - Mailing list pgsql-general

From Michael Fuhr
Subject Re: MULE_INTERNAL translation to win1250
Date
Msg-id 20070129051504.GA85598@winnie.fuhr.org
Whole thread Raw
In response to Re: MULE_INTERNAL translation to win1250  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
On Sun, Jan 28, 2007 at 07:27:12PM -0700, Michael Fuhr wrote:
> I wonder if the OP is doing something like this:
[...]
> test=> INSERT INTO test VALUES (E'\202\232'); -- \202=0x82, \232=0x9a

Another possibility, perhaps more likely, is that some connection
didn't set client_encoding to win1250 before it inserted win1250-encoded
data; in that case the data was probably treated as LATIN2 and
stored without conversion.  When a connection with client_encoding
set to win1250 tries to fetch the data, conversion is attempted and
fails because some LATIN2 values don't have win1250 mappings.

--
Michael Fuhr

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Load balancing across disks
Next
From: "Pierre Thibaudeau"
Date:
Subject: convert(USING utf8_to_iso_8859_15) on Windows