StringUtil { public static String stripAccents(final String input) { if (input == null) { return null; } final StringBuilder decomposed = new StringBuilder(Normalizer.normalize(input, Normalizer.Form.NFD)); convertRemainingAccentCharacters(decomposed); return PATT_DIACRITICAL_MARKS.matcher(decomposed).replaceAll(StringUtils.EMPTY); } private  StringUtil(); static String escapeRegexCharacters(String termStr); static String normalizeWhitespace(String s); static String stripAccents(final String input); static String trimWhitespaceAndPunctuation(String input); static String camelCaseToDisplayable(String camelCaseString, boolean dashesToSpaces); static String ordinal(int docNumber); static String wildcardToRegex(String wildcard); static final char CHAR_NON_BREAKING_SPACE; }
@Test public void testRemoveAccents() { Assert.assertEquals("He, jij!", StringUtil.stripAccents("Hé, jij!")); }