Обсуждение: lower('Å') or upper('å') gives improper results.

Поиск
Список
Период
Сортировка

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

От
"Neha Kasat"
Дата:
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-versawhen using upper. 

Neha


Re: lower('Å') or upper('å') gives imp

От
Peter Eisentraut
Дата:
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



Re: lower('Å') or upper('å') gives imp

От
Tom Lane
Дата:
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