You need to make sure your database supports Unicode sorting for the character set you are using, for example. UTF-8. Java ddes is Unicode by default, so the comparator class works.
Presumably your database does not - you are probably using US-ASCII, right?
Restoring your database and transforming your data is a difficult answer.
source share