Search Postgresql Archives

Re: Unicode support problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Jatinder Sangha" <js@xxxxxxxxxxxxxxxx> writes:
> I've setup the postgres database as follows:

> LANG=C
> initdb  -E UNICODE
> createdb -E UNICODE

> I have tried setting locale/lc_ctype to C, POSIX, iso_8859_1, all kinds
> of things, and nothing seems to fix it.

You can't just pick random combinations of locale and database encoding.
Any given locale setting implies a character set encoding, and you have
to use that same encoding as the database encoding; at least if you want
encoding-dependent operations such as upper()/lower() to work.  The
locale you want for Unicode (UTF8) may be named something like
"en_US.utf8".  Try "locale -a" to get a list of supported locales.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux