Re: character encoding in StartupMessage - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: character encoding in StartupMessage
Date
Msg-id 20060228150517.GB6343@surnet.cl
Whole thread Raw
In response to Re: character encoding in StartupMessage  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: character encoding in StartupMessage
List pgsql-hackers
Martijn van Oosterhout wrote:

> This may be the only solution. Converting everything to UTF-8 has
> issues because some encodings are not roundtrip-safe (Enc -> UTF8 -> Enc
> gives you a different string than you started with). There's probably
> no encoding round-trip safe with every other encoding.

Is this still true?  If I remember clearly, Tatsuo-san had asserted that
this was the case, but later he said there was some bug in our
conversion routines or the conversion tables.  So maybe now that those
things are fixed (they are, aren't they?) there _is_ a safe roundtrip
from anything to UTF8 and back.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: "Suvarna"
Date:
Subject: bug in 7.3.2
Next
From: John DeSoi
Date:
Subject: Re: character encoding in StartupMessage