Re: C locale + unicode

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: John Sidney-Woollett <johnsw(at)wardbrook(dot)com>
Cc: postgres general <pgsql-general(at)postgresql(dot)org>
Subject: Re: C locale + unicode
Date: 2005-01-14 16:57:08
Message-ID: 24338.1105721828@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John Sidney-Woollett <johnsw(at)wardbrook(dot)com> writes:
> Does anyone know if it's permitted to use the 'C' locale with a UNICODE
> encoded database in 7.4.6?

Yes.

> And will it work correctly?

For suitably small values of "correctly", sure. Textual sort ordering
would be by byte values, which might be a bit unintuitive for Unicode
characters. And I don't think upper()/lower() would work very nicely
for characters outside the basic ASCII set. But AFAIR those are the
only gotchas. People in the Far East, who tend not to care about either
of those points, use 'C' locale with various multibyte character sets
all the time.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2005-01-14 16:58:24 Re: Problem Dropping a Database with users connected to it
Previous Message Tom Lane 2005-01-14 16:51:36 Re: Problem Dropping a Database with users connected to it