Thread: BUG #2161: ILIKE does not work with german umlauts in UTF8

BUG #2161: ILIKE does not work with german umlauts in UTF8

From
"Thomas Robak"
Date:
The following bug has been logged online:

Bug reference:      2161
Logged by:          Thomas Robak
Email address:      thomas.robak@dataplexx.com
PostgreSQL version: 8.0.3
Operating system:   i686-pc-linux-gnu SuSE kernel 2.6.11.4-20a-smp
Description:        ILIKE does not work with german umlauts in UTF8
Details:

Querying tables encoded UTF8 containing german umlauts such aus
Ö,ö,Ä,ä,Ü,ü with ILIKE will only return case-sensitive results. For
example:

Table:
|---------------|
|    DATA               |
|---------------|
| Österreich           |
| Niederösterreich |
| Ober Österreich  |
|---------------|

Query1= SELECT * FROM table WHERE data ILIKE '%ö%'
Result:
Niederösterreich

Query2= SELECT * FROM table WHERE data ILIKE '%Ö%'
Result:
Österreich
Ober Österreich

Re: BUG #2161: ILIKE does not work with german umlauts in UTF8

From
Volkan YAZICI
Date:
On Jan 10 01:38, Thomas Robak wrote:
> Querying tables encoded UTF8 containing german umlauts such aus
> Ö,ö,Ä,ä,Ü,ü with ILIKE will only return case-sensitive results.
> For example:

Please see these posts:
 http://archives.postgresql.org/pgsql-bugs/2006-01/msg00063.php
 http://archives.postgresql.org/pgsql-general/2005-12/msg00095.php


Regards.