Re: [GENERAL] invalid byte sequence ? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [GENERAL] invalid byte sequence ?
Date
Msg-id 4361.1156531414@sss.pgh.pa.us
Whole thread Raw
In response to Re: [GENERAL] invalid byte sequence ?  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: [GENERAL] invalid byte sequence ?
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> And as a counter-example: pg_dump should absolutly not use the client
> locale, it should always dump as the same encoding as the server...

Sure, but pg_dump should set that explicitly.  I'm prepared to believe
that looking at the locale is sane for all normal clients.

It might be worth providing a way to set the client_encoding through a
PQconnectdb connection-string keyword, just in case the override-via-
PGCLIENTENCODING dodge doesn't suit someone.  The priority order
would presumably be connection string, then PGCLIENTENCODING, then
locale.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: [GENERAL] invalid byte sequence ?
Next
From: Alvaro Herrera
Date:
Subject: Re: [GENERAL] invalid byte sequence ?