Posted By

nialace on 10/06/11


Tagged

java


Versions (?)

Remove accent


 / Published in: Java
 

URL: http://www.developpez.net/forums/d460531/java/general-java/langage/supprimer-accents-chaine/

  1. public static String removeAccent(String source) {
  2. return Normalizer.normalize(source, Normalizer.Form.NFD).replaceAll("[\u0300-\u036F]", "");
  3. }

Report this snippet  

You need to login to post a comment.