Re: invalid byte sequence ? - Mailing list pgsql-general

From Tom Lane
Subject Re: invalid byte sequence ?
Date
Msg-id 6998.1156439869@sss.pgh.pa.us
Whole thread Raw
In response to Re: invalid byte sequence ?  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: invalid byte sequence ?
List pgsql-general
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane wrote:
>> A possible solution therefore is to have psql or libpq drive the
>> client_encoding off the client's locale environment instead of
>> letting it default to equal the server_encoding.

> I have been proposing that for years, but just about now the Japanese
> would speak up and protest ...  I say, rush this in before anyone
> notices.

I guess the key point might be "what do we do if the client locale
is C?"  Perhaps if it's C, we continue to use the server encoding
as we have in the past.  This would be a reasonable fallback in
other cases where we fail to deduce an encoding from the locale, too.

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Large database design advice
Next
From: Michael Fuhr
Date:
Subject: Re: Large database design advice