Tomas Vondra wrote: Hi,
> I've encountered a strange problem. We have a PG 8.0.x database cluster > (in the sense used in initdb, i.e. bunch of databases) created with > UNICODE encoding, namely cs_CZ.UTF-8 locale. > > When a database is created with a different encoding (in our case it's > LATIN2) the string comparison doesn't work correctly. Actually this is sort of expected. Your locale configuration expects a certain encoding; all databases should be created using that encoding for string comparison to work properly. What definitely is a bug is the fact that CREATE DATABASE allows you to create a database with an encoding different from the one defined by initdb. The conclusion is that you should create your databases using UTF-8 encoding if you are using cs_CZ.UTF-8, otherwise it won't work as expected. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org