Re: locale and character set - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: locale and character set
Date
Msg-id 200503311559.17801.peter_e@gmx.net
Whole thread Raw
In response to locale and character set  (Tsirkin Evgeny <tsurkin@mail.jct.ac.il>)
Responses Re: locale and character set  (Tsirkin Evgeny <tsurkin@mail.jct.ac.il>)
List pgsql-admin
Am Donnerstag, 31. März 2005 15:49 schrieb Tsirkin Evgeny:
> Is there any relation between the locale and character set?

Every locale expects a certain character set to be used.  You can find that
out using

$ LC_ALL=foo locale charmap

If you want things to function correctly, you have to use a character set that
matches the one the locale expects.

> For example if i store the data as sql_ascii can i still use the locale
> as utf-8?
> In my case i have the data stored as ascii but i just know it is
> actually utf-8 and i am doing upgrade ,

That should work, but of course you have no guarantees that the UTF-8 is
valid, so the sorting routines and others may behave erratically if they find
an error.

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


pgsql-admin by date:

Previous
From: Tsirkin Evgeny
Date:
Subject: locale and character set
Next
From: "Joel Fradkin"
Date:
Subject: Re: connectivity to database been an issue for me.