Edward K. Ream schrieb: > Can anyone tell me how the content handler can determine the encoding of the > file? Can sax provide this info?
That's not supported in SAX. If you use Expat directly (module pyexpat), you can set the XmlDeclHandler, which is called when the XML declaration is received (with the parameters version, encoding, and standalone). However, as the XML declaration is optional, this callback might not get invoked. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list