The release of Python 3.15.0 alpha 1 on GitHub marks the beginning of the official preview and testing phase for the next feature version of the language. This alpha release gives the first look at ...
XML files have a header describing what encoding they are in. If this is correct, you're done. However, ASCII is a subset of UTF-8 so you can safely assume everything is UTF-8 and parse it.