def deaccent(text):
 if (not isinstance(text, unicode)):
  text = text.decode('utf8')
 norm = unicodedata.normalize('NFD', text)
 result = u('').join((ch for ch in norm if (unicodedata.category(ch) != 'Mn')))
 return unicodedata.normalize('NFC', result)

def deaccent ( text ) : if ( not isinstance ( text , unicode ) ) : text = text . decode ( 'utf8' ) norm = unicodedata . normalize ( 'NFD' , text ) result = u ( '' ) . join ( ( ch for ch in norm if ( unicodedata . category ( ch ) != 'Mn' ) ) ) return unicodedata . normalize ( 'NFC' , result )
remove accentuation from the given string .