Here you can find the source of equalsIgnoreAccents(String lhs, String rhs, Locale locale)
public static boolean equalsIgnoreAccents(String lhs, String rhs, Locale locale)
//package com.java2s; import java.text.Collator; import java.util.Locale; public class Main { public static boolean equalsIgnoreAccents(String lhs, String rhs, Locale locale) { Collator collator = Collator.getInstance(locale); collator.setStrength(Collator.PRIMARY); int comparison = collator.compare(lhs, rhs); return (comparison == 0); }/* w w w . j a v a2 s .c om*/ }