SELECT getdatabaseencoding(), current_setting('client_encoding'), current_setting('lc_ctype'), current_setting('lc_collate'), version();
returns
UTF8 UNICODE C C PostgreSQL 9.1.7 on x86_64-unknown-linux-gnu, compiled by gcc-4.5.real (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2, 64-bit
select lower('ČĘĖĮ')
returns ČĘĖĮ
Actually what I want is to seach surnames with ILIKE which is not working for those chars. WHy this can be?