public class AccentConverter {
public static void main(String[] args) {
String str = "áéíóúÁÉÍÓÚ";
System.out.println(str);
System.out.println(convertAccentLetters(str));
}
public static String convertAccentLetters(String str) {
str = Normalizer.normalize(str, Normalizer.Form.NFD);
str = str.replaceAll("[^\\p{ASCII}]", "");
return str;
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Oldest comments (0)