0

I want to convert in Python 2.7 string like "€", "ż" and similar to UTF-8 string. How to do it?

1 Answers1

1

Python3

>>> import html
>>> html.unescape('©')
'©'
>>> html.unescape('€')
'€'
>>> html.unescape('ż')
'ż'

It's in html module in python.

Charanjit Singh
  • 809
  • 10
  • 23