Posted By

manatlan on 09/09/09


Tagged

python text


Versions (?)

accented chars remover


 / Published in: Python
 

  1. import unicodedata
  2.  
  3. def removeAccentedChars(s):
  4. return unicodedata.normalize('NFKD',s).encode('ascii','ignore')
  5.  
  6. print removeAccentedChars(u"aaàöÜ")

Report this snippet  

You need to login to post a comment.