Posted By

jsbournival on 08/30/07


Tagged

escape java accents


Versions (?)

Remove french accents from a String


 / Published in: Java
 

URL: http://www.developpez.net/forums/showthread.php?t=7810

  1. key = key.replace('Ý', 'Y');
  2. key = key.replaceAll("Ù | Ú | Û | Ü", "U");
  3. key = key.replaceAll("Ò | Ó | Ô | Õ | Ö", "O");
  4. key = key.replaceAll("Ì | Í | Î | Ï", "I");
  5. key = key.replaceAll("È | É | Ê | Ë", "E");
  6. key = key.replace('Ç', 'C');
  7. key = key.replaceAll("À | Á | Â | Ã | Ä | Å | Æ", "A");

Report this snippet  

You need to login to post a comment.