From: Bjoern Metzdorf <bm@turtle-entertainment.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pgsql-Admin (E-mail) <pgsql-admin@postgresql.org>
Subject: Re: invalid multibyte character for locale
Date: Thu, 24 Feb 2005 08:41:53 +0100
Message-ID: <421D8541.2000904@turtle-entertainment.de> (raw)
In-Reply-To: <23514.1109203127@sss.pgh.pa.us>
References: <421CF15C.6010306@turtle-entertainment.de>
<421CF1CE.3000800@turtle-entertainment.de>
<23514.1109203127@sss.pgh.pa.us>
Tom Lane wrote:
> Well, in that case your encoding is indeed at variance with your locale
> setting ;-). Perhaps you should declare the encoding as SQL_ASCII.
> The immediate problem is that mbstowcs() is being called and it
> evidently doesn't know what to do in C locale. SQL_ASCII (or any
> single-byte encoding) would bypass this code path and avoid the
> error.
The problem is that we need UNICODE encoding in our database. We make
heavy use of UTF-8 (our website is multilingual).
I now tried with locale set to de_DE.UTF-8, but
CREATE INDEX foobar_uvalue_key ON foobar USING btree (upper((value)::text));
still gives me
ERROR: invalid multibyte character for locale.
With 7.3 and 7.4 this is working fine. May I assume that 7.3 and 7.4
behaviour is buggy? Is 8.0 just stricter or is this just a side effect
of your fix for multibyte upper/lower problem for locale != C?
If 7.3 and 7.4 behaviour is intended, is there a way to let 8.0 behave
the same?
Regards,
Bjoern
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bm@turtle-entertainment.de, tgl@sss.pgh.pa.us
Subject: Re: invalid multibyte character for locale
In-Reply-To: <421D8541.2000904@turtle-entertainment.de>
References: <421CF15C.6010306@turtle-entertainment.de> <421CF1CE.3000800@turtle-entertainment.de> <23514.1109203127@sss.pgh.pa.us> <421D8541.2000904@turtle-entertainment.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox