AsciiUtils { public static String removeDiacriticalMarks(String st) { if (st == null) { return null; } final int len = st.length(); final StringBuilder sb = new StringBuilder(); for (int i = 0; i < len; i++) { sb.append(removeDiacriticalMark(st.charAt(i))); } return sb.toString(); } private  AsciiUtils(); static char removeDiacriticalMark(char c); static String removeDiacriticalMarks(String st);  }
@Test public void testRemoveDiacriticalMarks() { String toReplace = UNICODE; StringBuilder sb = new StringBuilder(); for (int i = '\u00D0'; i <= '\u024F'; i++) { sb.append((char) i); } Assert.assertEquals(PLAIN_ASCII, AsciiUtils.removeDiacriticalMarks(toReplace)); }