Re: Determining client_encoding from client locale - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Determining client_encoding from client locale
Date
Msg-id 200906171636.59993.peter_e@gmx.net
Whole thread Raw
In response to Determining client_encoding from client locale  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: Determining client_encoding from client locale  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Determining client_encoding from client locale  (Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
List pgsql-hackers
On Wednesday 17 June 2009 14:29:26 Heikki Linnakangas wrote:
> We currently require that you set client_encoding correctly, or you get
> garbage in psql and any other tool using libpq. How about setting
> client_encoding automatically to match the client's locale? We have
> pg_get_encoding_from_locale() function that we can use to extract the
> encoding from LC_CTYPE. We could call that in libpq.

I have been requesting that for years, but the Japanese users/developers 
typically objected to that.  I think it's time to relaunch the campain, 
though.



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Determining client_encoding from client locale
Next
From: Peter Eisentraut
Date:
Subject: plpgsql error message