Remove french accents from a String


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  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");

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.