Re:   Hi, ever - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re:   Hi, ever
Date
Msg-id 20061004094200.GA7063@svana.org
Whole thread Raw
In response to Re:   Hi, ever  ("stevegy" <stevegy@126.com>)
Responses Re:    Hi,&nbs  ("stevegy" <stevegy@126.com>)
Re: Hi, For the UTF-8 encoding  ("stevegy" <stevegy@126.com>)
List pgsql-general
On Wed, Oct 04, 2006 at 07:50:12AM +0800, stevegy wrote:
> My testing database is initdb -E UTF8. And  i guess the solaris can
> not handle the UTF-8 sorting with the LC_COLLATE="zh_CN.GB18030". But
> i need to prove this.

A locale can only handle one charset, usually the one given by "locale
charset". So if it handles sorting in GB18030 then by definition it
can't handle UTF-8.

> So i plan to change the locale of my solaris box. I have installed
> the zh_CN.UTF8 on it. I am looking for a way to change the solaris
> locale. If this changing need to re-boot machine that I should do
> this in some not busy time for the live application.

The locale is not a global setting. If you set the LANG or LC_ALL
variable, it will change the locale of any program run with that
environment variable. The default is the "C" locale.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Andrew - Supernews
Date:
Subject: Re: Need help with a function from hell..
Next
From: "Clodoaldo Pinto Neto"
Date:
Subject: Re: Moving data to another disk