Python – Convert a Unicode string to a string in Python (containing extra symbols)

pythonstringtype-conversionunicode

How do you convert a Unicode string (containing extra characters like £ $, etc.) into a Python string?

Best Solution

See unicodedata.normalize

title = u"Klüft skräms inför på fédéral électoral große"
import unicodedata
unicodedata.normalize('NFKD', title).encode('ascii', 'ignore')
'Kluft skrams infor pa federal electoral groe'