Jonas Forsman wrote:
> The following bug has been logged online:
> Bug reference: 3737
> Logged by: Jonas Forsman
> Email address: jonas(at)axier(dot)org
> PostgreSQL version: 8.1.10
> Operating system: Ubuntu 6.06 LTS
> Description: lower/upper fails to match extended chars in LATIN1
> select * from table where lower(address) like '%Ã¥%'
> This select fails to find addresses including capital Ã… and similars in
> LATIN1 (like Ã…, Ã„, Ã–).
The behavior of lower() depends on your locale. What locale are you
running in? Make sure your locale matches the encoding.
Exact locale names and behavior are defined by the operating system, but
for example on Debian, which is probably the same as Ubuntu in this
initdb -D data --locale=sv_SE.iso88591 --encoding=LATIN1
Also make sure that your client_encoding is set correctly. For example,
if you run the query in psql in a terminal that uses UTF-8 encoding, you
need to "SET client_encoding='UTF-8'"
See the manual for more details:
In response to
pgsql-bugs by date
|Next:||From: Douglas Toltzman||Date: 2007-11-09 16:53:57|
|Subject: Re: BUG #3736: server cannot listen|
|Previous:||From: Chris Vickery||Date: 2007-11-09 16:40:59|
|Subject: BUG #3738: psql crashes on exit.|