How to compare non english characters with accents
I want to compare 2 strings which have some non English character in them String1 = debarquer String2 = débárquér On comparing above 2 strings, they should say equal. Use the Collator class. It allows you to set a strength and locale and it will compare characters appropriately. It should be something similar to this (NOTE: I have not tested the program) import java.text.Collator; import java.util.Locale; public class CollatorExp { public static void main(String[] args) { Collator collator = Collator.getInstance(Locale.FRENCH); collator.setStrength(Collator.PRIMARY); if (collator.compare(