Here you can find the source of removeAccents(String textWithAccent)
public static String removeAccents(String textWithAccent)
//package com.java2s; //License from project: LGPL import java.text.Normalizer; public class Main { public static String removeAccents(String textWithAccent) { String normalizeFileName = Normalizer.normalize(textWithAccent, Normalizer.Form.NFD); return normalizeFileName.replaceAll("[^\\p{ASCII}]", ""); }//from ww w . j a va 2s. co m }