I want to convert in Python 2.7 string like
"€", "ż"
and similar to UTF-8 string.
How to do it?
1 Answer 1
Python3
>>> import html
>>> html.unescape('©')
'©'
>>> html.unescape('€')
'€'
>>> html.unescape('ż')
'ż'
It's in html module in python.
answered Dec 20, 2019 at 7:41
Charanjit Singh
1,10514 silver badges27 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default