set client_encoding='KOI8'; SELECT 'д' ~* '[[:alpha:]]' as "true"; SELECT 'Дорога' ~* 'дорога' as "true", 'дорога' ~* 'дорога' as "true";