Java Utililty Methods String Accent

List of utility methods to do String Accent

Description

The list of methods to do String Accent are organized into topic(s).

Method

char[]getDeAccentLoweredChars(String word)
get De Accent Lowered Chars
char[] chars = deAccent(word.toLowerCase()).toCharArray();
return chars;
StringnormalizeByRemovingAccent(final String string)
Same treatment as the one of #normalize(String) but removes also the accented characters.
String normalized = string;
if (normalized != null) {
    normalized = Normalizer.normalize(normalized, Normalizer.Form.NFD);
    normalized = normalized.replaceAll("\\p{InCombiningDiacriticalMarks}+", "");
return normalized;
StringremoveAccent(String s)
Bo dau 1 chuoi
String temp = Normalizer.normalize(s, Normalizer.Form.NFD);
Pattern pattern = Pattern.compile("\\p{InCombiningDiacriticalMarks}+");
return pattern.matcher(temp).replaceAll("");
StringremoveAccent(String s)
Removes accent from given string.
String temp = Normalizer.normalize(s, Normalizer.Form.NFD);
Pattern pattern = Pattern.compile(REMOVE_ACCENT_PATTERN);
return pattern.matcher(temp).replaceAll("");
StringremoveAccent(String strIn)
Supprime les accents
return Normalizer.normalize(strIn, Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", "");
StringremoveAccents(final String s)
replace accentuated characters by their non-accentuated equivalents.
String nfdNormalizedString = Normalizer.normalize(s, Normalizer.Form.NFD);
return DIACRITICALMARKS_PATTERN.matcher(nfdNormalizedString).replaceAll("");
StringremoveAccents(final String value)
Remove accents from any character i.e.
final String normalized = Normalizer.normalize(value, Normalizer.Form.NFD);
return PATTERN_ACCENT_CHARS.matcher(normalized).replaceAll(STRING_EMPTY);
StringremoveAccents(final String value)
Removes accented characters from a string, replacing them with English character equivalents.
final String decomposed = Normalizer.normalize(value, Normalizer.Form.NFD);
return decomposed.replaceAll("\\p{InCombiningDiacriticalMarks}+", "");
StringremoveAccents(String input)
Convert accented letters to their unaccented counterparts.
String normalized = Normalizer.normalize(input, Normalizer.Form.NFD);
return PATT_DIACRITICS.matcher(normalized).replaceAll("");
StringremoveAccents(String s)
Removes accents from all letters according to Unicode spec.
final String normalized = Normalizer.normalize(s, Normalizer.Form.NFD);
StringBuilder sb = new StringBuilder(s.length());
for (int i = 0; i < normalized.length(); i++) {
    char c = normalized.charAt(i);
    if (c == '\u0111' || c == '\u0110') { 
        sb.append("dj");
    } else if (Character.getType(c) != Character.NON_SPACING_MARK) {
        sb.append(c);
...