Skip to content

Instantly share code, notes, and snippets.

@rmpestano
Created April 20, 2019 00:13
Show Gist options
  • Save rmpestano/64add4f5fa25abb977642b66213ddbfe to your computer and use it in GitHub Desktop.
Save rmpestano/64add4f5fa25abb977642b66213ddbfe to your computer and use it in GitHub Desktop.
Remove accents
private String removeAccents(String str) {
        return Normalizer.normalize(str, Normalizer.Form.NFD).replaceAll("[^\\p{ASCII}]", "");
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment