pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Tsirkin Evgeny <tsurkin@mail.jct.ac.il>
Cc: pgsql-admin@postgresql.org
Subject: Re: locale and character set
Date: Thu, 31 Mar 2005 15:59:17 +0200
Message-ID: <200503311559.17801.peter_e@gmx.net> (raw)
In-Reply-To: <424BFFF7.3080507@mail.jct.ac.il>
References: <424BFFF7.3080507@mail.jct.ac.il>

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/



view thread (4+ messages)  latest in thread

Message-ID: <200503311559.17801.peter_e@gmx.net>
Permalink:  ../200503311559.17801.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200503311559.17801.peter_e@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: peter_e@gmx.net, tsurkin@mail.jct.ac.il
  Subject: Re: locale and character set
  In-Reply-To: <200503311559.17801.peter_e@gmx.net>
  References: <424BFFF7.3080507@mail.jct.ac.il> <200503311559.17801.peter_e@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox