Re: UTF-8 collation on Windows?

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: UTF-8 collation on Windows?
Дата
Msg-id c1c35ef6-6d75-4124-836d-5e308202dff5@mm
обсуждение исходный текст
Ответ на Re: UTF-8 collation on Windows?  (Dev Kumkar <devdas.kumkar@gmail.com>)
Ответы Re: UTF-8 collation on Windows?  (Dev Kumkar <devdas.kumkar@gmail.com>)
Список pgsql-general
    Dev Kumkar wrote:

> Succeeds but as replied earlier it creates database with LC_COLLATE =
> 'English_United States.1252' which corresponds to Latin1.

Despite windows-1252 being a monobyte encoding sharing most
of LATIN1 codes and character set, it does not mean that
English_United States.1252 is limited to this character set.
You may use UTF-8 databases with that locale.

Consider the 2nd paragraph of  "Character Set Support"
in the doc:
http://www.postgresql.org/docs/current/static/multibyte.html

    "For C or POSIX locale, any character set is allowed, but for other
     locales there is only one character set that will work
     correctly. (On Windows, however, UTF-8 encoding can be used with
     any locale.)"

This is a key difference with Unix when choosing a locale.

As for getting the exact same sort order than Linux, it's not possible but
that's not a Windows-vs-Unix issue. If you used FreeBSD or MacOS X, some
en_US.UTF-8 collation rules  would differ from Linux's libc too, resulting in
a different sort order for certain strings.

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org


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

Предыдущее
От: Vik Fearing
Дата:
Сообщение: Re: Query
Следующее
От: Tim Kane
Дата:
Сообщение: Re: Possible to improve optimisation / index usage based on domain properties of a function