DEV Community


How to remove accent marks in Java?

Vijay SRJ
Tinkerer. I tinker code. I also blog @
・1 min read

To remove accent marks from accented words like ‘tête-à-tête’ you need to follow two steps:
Step1 : Normalize the word using java.text.Normalizer

Step2 : Replace the accent characters from the normalised word with empty space (remove them)

Here is a working example :

Discussion (0)

Forem Open with the Forem app