Re: encoding and locale

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: Christian Traber <christian(at)traber-net(dot)de>
Subject: Re: encoding and locale
Date: 2005-07-16 19:43:09
Message-ID: 200507162143.10861.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Christian Traber wrote:
> Now I know a I cannot use every lc_ctype with every encoding,
> but where can I find a list of valid encoding/locale combinations?

Try something like the following:

for x in $(locale -a); do echo -n "$x: "; LC_ALL=$x locale charmap; done

Unfortunately, the name of the encoding that the locale system uses
might differ from the locale name that PostgreSQL uses, so you will
have to be able to see through that.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Patrick TJ McPhee 2005-07-16 20:54:22 Re: How to create unique constraint on NULL columns
Previous Message Jiří Němec 2005-07-16 18:50:57 Re: PostgreSQL select