import java.text.Collator;
import java.util.Locale;
public class Main {
public static void main(String args[]) {
String s1 = "é";
String s2 = "É";
Collator frCollator = Collator.getInstance(Locale.FRANCE);
frCollator.setStrength(Collator.SECONDARY);
if (frCollator.compare(s1, s2) == 0) {
System.out.println("s1 = s2");
}
}
}
//s1 = s2
|