From: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
---|---|
To: | peter_e(at)gmx(dot)net |
Cc: | lafriks(at)hello(dot)lv, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Latvian language & upper & lower |
Date: | 2003-07-08 01:14:26 |
Message-ID: | 20030708.101426.92586030.t-ishii@sra.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On Mon, 7 Jul 2003, Lauris Bukshis wrote:
>
> > LC_COLLATE: lv_LV.UTF-8
> > LC_CTYPE: lv_LV.UTF-8
> >
> > but when making upper or lower on any text latvian symbols stays on the
> > same case. And I can't get lower and upper to work correctly :( Is there
> > any such way to get them work correctly? :)
>
> You can only expect this to work if the data in your database is in UTF-8.
> If you store them in ISO 8859-x you need to select a different locale,
> probably named lv_LV.
I think even if the data in his database is in UTF-8, upper() or
lower() won't work. See the source code.
The only workaround would something like this:
select convert(lower(convert(table_col, 'ISO-8859-x')),'ISO-8859-x','UNICODE')
from your_table;
--
Tatsuo Ishii
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2003-07-08 01:35:50 | Bad permissions bug in 7.3 dump (and 7.4)? |
Previous Message | Tatsuo Ishii | 2003-07-08 01:14:23 | Re: [HACKERS] again: Bug #943: Server-Encoding from EUC_TW |