Re: select lower('ÆØÅ ABC'); does not work as expected

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: willy malth <donotemailme(at)nosuchdomain(dot)xx>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: select lower('ÆØÅ ABC'); does not work as expected
Date: 2003-05-25 03:07:31
Message-ID: 2862.1053832051@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

willy malth <donotemailme(at)nosuchdomain(dot)xx> writes:
> I'm useing postgresql 7.3.2, and having trouble with the lower(string)
> function and the Danish special chars:
> The Danish chars does not convert to lower chars.

You need to run initdb in the correct locale. LC_COLLATE and LC_CTYPE
are both locked down at initdb time, and the latter determines the
behavior of lower(). You could use pg_controldata to check the
database's LC_CTYPE, but I'll bet that it's not a Danish locale.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Markus Bertheau 2003-05-25 15:20:20 Re: pg_connect
Previous Message Frank Bax 2003-05-25 02:01:30 Re: faster output from php and postgres