I created a code in Java
to remove the accents like the following:
private String removerAcentos(String texto) {
texto = Normalizer.normalize(texto, Normalizer.Form.NFD);
texto = texto.replaceAll("[\p{InCombiningDiacriticalMarks}]", "");
return texto;
}
I would like to know the difference between [\p{InCombiningDiacriticalMarks}]
and [^\p{ASCII}]
.