Обсуждение: Which locale to use for multiple-language support?

Поиск
Список
Период
Сортировка

Which locale to use for multiple-language support?

От
David Edwards
Дата:
Hi,

Some of postgresql's string functions behave differently depending on the locale the cluster was created with. With the locales 'C' or 'en_US.utf8', lower() does not lowercase non-ascii characters such as Ü (umlaut-u).

If we have users from all over the world storing data in our database with all sorts of languages, which locale should we use to ensure these string functions behave as they expect?

Thanks,

--
David Edwards

Re: Which locale to use for multiple-language support?

От
Peter Eisentraut
Дата:
On mån, 2009-11-09 at 10:57 +0000, David Edwards wrote:
> If we have users from all over the world storing data in our database
> with all sorts of languages, which locale should we use to ensure
> these string functions behave as they expect?

Try en_US.utf8.  It is pretty language neutral.