DEV Community

Vijay SRJ
Vijay SRJ

Posted on

1

How to remove accent marks in Java?

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 :

https://fullstackdeveloper.guru/2021/02/11/how-to-replace-accented-characters-with-the-original-characters-in-java/

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay