astropy.utils
astropy.utils.xml.iterparser.
get_xml_encoding
Determine the encoding of an XML file by reading its header.