I would to find all the rows of a PostgreSQL table which have Cyrillic characters. I tried to use this query: SELECT * FROM "items" WHERE (title SIMILAR TO '%[\u0410-\u044f]%')
, which I take here:
Find all rows using some Unicode range (such as Cyrillic characters) with PostgreSQL?.
It seems to work, but other then the Cyrillic values, I also get some Latin values. How is it possible? I think that maybe, even if I'm writing Latin letters, if I use a keyboard with Cyrillic characters, some of them could be read as Cyrillic.
Anyway, I'm using this DB on a Java project. Does exist a more efficient solution via code?
Thank you