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

From Tom Lane
Subject Re: invalid byte sequence ?
Date
Msg-id 3942.1156428065@sss.pgh.pa.us
Whole thread Raw
In response to Re: invalid byte sequence ?  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-general
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Martijn van Oosterhout wrote:
>> It seems to me that setting the client encoding based on the
>> client-locale is the *only* sensible way of doing it.

> Yes please.

> FWIW I'm not sure if it really belongs in libpq, or it must be rather in
> psql (and thus in every client).

libpq is what implements PGCLIENTENCODING, so I'd say that's where any
change in the default has to be handled.  Presumably we'd still allow
PGCLIENTENCODING to override the locale?

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Saving a jpg into Postgresql table
Next
From: Ron Johnson
Date:
Subject: Re: Length limit for query