Skip site navigation (1) Skip section navigation (2)

Re: BUG #2261: ILIKE seems to be buggy on koi8 input

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Evgeny Gridasov" <eugrid(at)fpm(dot)kubsu(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2261: ILIKE seems to be buggy on koi8 input
Date: 2006-02-15 17:44:18
Message-ID: 14626.1140025458@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Evgeny Gridasov" <eugrid(at)fpm(dot)kubsu(dot)ru> writes:
> my terminal is RU_ru.KOI8-R,
> template1's encoding is UTF8.
> ILIKE seems to be buggy when comparing russian strings,
> while UPPER/LOWER works OK.

I'll bet that the database's locale setting is expecting some encoding
other than UTF8 :-(.  You need to have compatible locale and encoding
settings inside the database.  You didn't say exactly what the database
LC_COLLATE value is, but if it's RU_ru.KOI8-R, that definitely does not
match UTF8.

			regards, tom lane

In response to

Responses

pgsql-bugs by date

Next:From: Michael FuhrDate: 2006-02-15 18:20:43
Subject: Re: BUG #2260: PGCrypto Memory Problem
Previous:From: Tom LaneDate: 2006-02-15 17:39:39
Subject: Re: BUG #2263: corrupted pgstat.stat file

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group