Here you can find the source of deAccent(String str)
public static String deAccent(String str)
//package com.java2s; //License from project: Open Source License import java.text.Normalizer; import java.util.regex.Pattern; public class Main { public static String deAccent(String str) { if (str == null) return null; String nfdNormalizedString = Normalizer.normalize(str, Normalizer.Form.NFD); Pattern pattern = Pattern.compile("\\p{InCombiningDiacriticalMarks}+"); return pattern.matcher(nfdNormalizedString).replaceAll(""); }//w ww . jav a 2 s . c o m }