This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
http://www.w3.org/TR/2006/REC-xml-20060816/#sec-guessing
Fixed with some enhancements to HTTPTextResource.getXMLPrologEncoding()