Here you can find the source of normalize(String string)
public static String normalize(String string)
//package com.java2s; /**//from w ww . jav a2s. c o m * License: https://github.com/votingsystem/votingsystem/wiki/Licencia */ import java.text.Normalizer; public class Main { public static String normalize(String string) { StringBuilder sb = new StringBuilder(string.length()); string = Normalizer.normalize(string, Normalizer.Form.NFD); for (char c : string.toCharArray()) { if (c <= '\u007F') sb.append(c); } return sb.toString(); } }