Issue
How do you convert a Unicode string (containing extra characters like £ $, etc.) into a Python string?
Solution
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'
Answered By - Sorantis
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.