I getting many XML files and some of them has wrong encoding (e.g. in xml header is ISO-8859-1, but all the strings are in UTF-8, and so on)
For parsing is used xml.etree.ElementTree and this also read xml header with encoding (which is sometimes wrong)
input_element = xml.etree.ElementTree.parse("input.xml").getroot()
I would like to force another encoding and ignore this from header.
Is there any simple way how to do this?