human
Replace non-ascii chars from a unicode string in Python
assistant
Here is some code to replace non-ascii chars from a unicode string u'm\xfasica'

unicodedata.normalize('NFKD', 'm\xfasica').encode('ascii', 'ignore')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.