How to fix invalid multibyte character for locale error

From: "Andrus" <eetasoft(at)online(dot)ee>
To: pgsql-general(at)postgresql(dot)org
Subject: How to fix invalid multibyte character for locale error
Date: 2005-07-11 12:33:18
Message-ID: datoug$173t$1@news.hub.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-07-11 13:41:02 Re: DB/clog corruption
Previous Message Reid Thompson 2005-07-11 12:02:14 DB/clog corruption