astropy.utils
astropy.utils.xml.iterparser.
get_xml_encoding
Determine the encoding of an XML file by reading its header.
source : readable file-like object, read function or str path
encoding : str