Here you can find the source of normalizeUnicodeDiacritics(String text)
public static String normalizeUnicodeDiacritics(String text)
//package com.java2s; //License from project: Open Source License import java.text.Normalizer; import java.text.Normalizer.Form; import java.util.regex.Pattern; public class Main { public static String normalizeUnicodeDiacritics(String text) { text = Normalizer.normalize(text, Form.NFD); Pattern pattern = Pattern.compile("\\p{InCombiningDiacriticalMarks}+"); text = pattern.matcher(text).replaceAll(""); return text; }//from w ww.j av a2 s. c om }