Here you can find the source of removeDiacritics(String input)
public static String removeDiacritics(String input)
//package com.java2s; //License from project: Open Source License import java.text.Normalizer; public class Main { public static String removeDiacritics(String input) { String nrml = Normalizer.normalize(input, Normalizer.Form.NFD); StringBuilder stripped = new StringBuilder(); for (int i = 0; i < nrml.length(); ++i) { if (Character.getType(nrml.charAt(i)) != Character.NON_SPACING_MARK) { stripped.append(nrml.charAt(i)); }/* ww w.j a v a 2 s . c o m*/ } return stripped.toString(); } }