Solved! Go to Solution.
From
What is the best way to remove accents in a Python unicode string? - Stack Overflow
oefe's response
z = "áéíóúñ#/" # ---- an example
import unicodedata
def strip_accents(s):
return ''.join(c for c in unicodedata.normalize('NFD', s)
if unicodedata.category(c) != 'Mn')
strip_accents(z) # ---- example output
'aeioun#/'
From
What is the best way to remove accents in a Python unicode string? - Stack Overflow
oefe's response
z = "áéíóúñ#/" # ---- an example
import unicodedata
def strip_accents(s):
return ''.join(c for c in unicodedata.normalize('NFD', s)
if unicodedata.category(c) != 'Mn')
strip_accents(z) # ---- example output
'aeioun#/'
RTM RTM, it appears Dan's reply answered your question. If so, please mark it correct to close out the question. If not, what didn't work?