Here you can find the source of removeDiacriticalMarks(String string)
public static String removeDiacriticalMarks(String string)
//package com.java2s; import java.text.Normalizer; import java.text.Normalizer.Form; public class Main { public static String removeDiacriticalMarks(String string) { return Normalizer.normalize(string, Form.NFD).replaceAll( "\\p{InCombiningDiacriticalMarks}+", ""); }/* w w w. j a v a 2 s .c om*/ }