Re: C locale + unicode

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C locale + unicode
Дата
Msg-id 24338.1105721828@sss.pgh.pa.us
обсуждение исходный текст
Ответ на C locale + unicode  (John Sidney-Woollett <johnsw@wardbrook.com>)
Ответы Re: C locale + unicode
Список pgsql-general
John Sidney-Woollett <johnsw@wardbrook.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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem Dropping a Database with users connected to it
Следующее
От: Wes
Дата:
Сообщение: Re: [HACKERS] Much Ado About COUNT(*)