Thread: encoding and LIKE/ILIKE matching

encoding and LIKE/ILIKE matching

From
viktor@lacina.org
Date:
Hi all,
                       

                       
Maybe it's a question or report to bug section, but i'm not sure :-)
                       

                       
I have a database in UTF-8 encoding filled with text in czech laguage.
                       
Everything looks correctly ... by hand translation from UTF8 2 latin2 and
                       
back is correct. But When i make any LIKE or ILIKE comparsion it sometimes
                       
fails. It's realy weird because for example 'Petr<in' IS NOT LIKE
                       
'Petr<%', but 'Petr<in' IS LIKE 'Petr<i%' ;-)
                       
Query is on 100% encoded correctly, it comes in UTF-8 from JDBC. Also data
                       
are correct :-)
                       

                       
Version of PGSQL is 7.3...
                       

                       
Any helpfull idea??
                       

                       
Thanks a lot :-)
                       

                       
Viktor Lacina