Following the usual cookbook examples, my app parses an open file as follows::
parser = xml.sax.make_parser() parser.setFeature(xml.sax.handler.feature_external_ges,1) # Hopefully the content handler can figure out the encoding from the <?xml> element. handler = saxContentHandler(c,inputFileName,silent) parser.setContentHandler(handler) parser.parse(theFile) Can anyone tell me how the content handler can determine the encoding of the file? Can sax provide this info? Thanks! Edward -------------------------------------------------------------------- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -------------------------------------------------------------------- -- http://mail.python.org/mailman/listinfo/python-list