Here you can find the source of equalsIgnoreAccentsAndCase(String s1, String s2)
public static boolean equalsIgnoreAccentsAndCase(String s1, String s2)
//package com.java2s; //License from project: Apache License import java.text.Normalizer; public class Main { public static boolean equalsIgnoreAccentsAndCase(String s1, String s2) { return equalsIgnoreAccents(s1.toLowerCase(), s2.toLowerCase()); }//w w w .j a v a2 s . com public static boolean equalsIgnoreAccents(String s1, String s2) { return stripAccents(s1).equals(stripAccents(s2)); } public static String stripAccents(String str) { return Normalizer.normalize(str, Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""); } }