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