lower('Å') or upper('å') gives improper results.

Started by Neha Kasatover 22 years ago3 messagesbugs
Jump to latest
#1Neha Kasat
neha_kasat@infosys.com

Hi,

Please find the output of the simple query :

sfa_db=> select upper('å');
upper
-------
å
(1 row)

PostGRESql doesn't convert the special characters like Å, Ò, etc into their lower case when using function lower and vice-versa when using upper.

Neha

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Neha Kasat (#1)
Re: lower('Å') or upper('å') gives imp

Neha Kasat writes:

PostGRESql doesn't convert the special characters like ᅵ, ᅵ, etc into
their lower case when using function lower and vice-versa when using
upper.

It does if you select the right locale.

--
Peter Eisentraut peter_e@gmx.net

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#2)
Re: lower('Å') or upper('å') gives imp

Peter Eisentraut <peter_e@gmx.net> writes:

Neha Kasat writes:

PostGRESql doesn't convert the special characters like �, �, etc into
their lower case when using function lower and vice-versa when using
upper.

It does if you select the right locale.

... and character set. We don't have support for this yet in multibyte
character sets (like Unicode). You need to pick an appropriate ISOnnnn
encoding and a suitable locale setting.

regards, tom lane