how do i parse an xml file encoded in iso-8859-1 with lxml?

It seems to me, that encoding is lost on json.dumps() stage. I would try to add ensure_ascii parameter:

print(json.dumps(dict, indent = 2, ensure_ascii=False))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top