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