Search Postgresql Archives

How to fix invalid multibyte character for locale error

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

 



I created Postgres 8 database in Windows XP  using

CREATE DATABASE mydb ENCODING='UNICODE';

and upsized data to it.


The query

SELECT name FROM customer ORDER BY UPPER(name);

returns error

ERROR:  invalid multibyte character for locale
HINT:  The server's LC_CTYPE locale is probably incompatible with the
database encoding.

How I can get customer list in case-insensitive alphabetical order ?

The query

SELECT name FROM customer

runs OK




---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

[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