0

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

0

1 Answer 1

1

Python3

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

It's in html module in python.

answered Dec 20, 2019 at 7:41
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.