Smarter Software

Removing Accents and Tildes From Text String In Python

Posted: November 10th, 2009 | Author: César Naranjo | Filed under: Uncategorized | No Comments »


# -*- coding: utf-8 -*-
import unicodedata
wordwithaccents = "Asociación Española"
wordnoaccents = unicodedata.normalize('NFKD', wordwithaccents).encode('ASCII', 'ignore')



Leave a Reply

  • Powered by WP Hashcash