Which locale to use for multiple-language support?

Started by David Edwardsover 16 years ago2 messagesgeneral
Jump to latest
#1David Edwards
david@omelett.es

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

#2Peter Eisentraut
peter_e@gmx.net
In reply to: David Edwards (#1)
Re: Which locale to use for multiple-language support?

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.