Re: BUG #4342: upper, lower, initcap do not work with umlaute?

From: valgog <valgog(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4342: upper, lower, initcap do not work with umlaute?
Date: 2008-08-07 12:35:23
Message-ID: 0604b344-9021-4087-b5ae-2b1c907c302b@i76g2000hsf.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Aug 6, 4:48 pm, kaeptn(dot)hadd(dot)(dot)(dot)(at)gmail(dot)com ("paull") wrote:
> The following bug has been logged online:
>
> Bug reference:      4342
> Logged by:          paull
> Email address:      kaeptn(dot)hadd(dot)(dot)(dot)(at)gmail(dot)com
> PostgreSQL version: 8.2? not sure
> Operating system:   ubuntu
> Description:        upper, lower, initcap do not work with umlaute?
> Details:
>
> Hello
>
> I suspect this is no news, but then again, maybe noone ever bothered to
> report?
>
> I suspect that pgsql functions upper, lower and initcap do not support
> umlaute. If I query in phppgadmin like this:
>
> select
> initcap('xxx'),upper('xxx'),initcap('öÖöÖäÄäÄä'),upper('öÖöÖä­
> äÄä')
>
> the result is this:
> Xxx     XXX     öÖöÖäÄäÄä      öÖöÖäÄäÄä
>
> Hope this helps you
> Best regards
>
> --
> Sent via pgsql-bugs mailing list (pgsql-b(dot)(dot)(dot)(at)postgresql(dot)org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-bugs

locale of the database should be de_DE.utf8 (if the database is with
encoding UNICODE) or de_DE in case the encoding is LATIN1.

check it with

show lc_ctype
show database_encoding

You cannot officially change the locale of the database so
theoretically you can buckup and restore the database to the correctly
initialized database.

I have managed to chenge the control file and reindex the database and
do not see any problems yet.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message valgog 2008-08-07 12:37:32 Re: BUG #4343: upper, lower, initcap do not work with umlaute? (important!)
Previous Message Glaucio Pedro 2008-08-07 12:29:40 BUG #4345: ERROR: OUT OF MEMORY