>> Can anyone tell me how the content handler can determine the encoding of 
>> the file?  Can sax provide this info?

> there is no encoding on the "inside" of an XML document; it's all Unicode.

True, but sax is reading the file, so sax is producing the unicode, so it 
should (must) be able to determine the encoding.  Furthermore, xml files 
start with lines like:

<?xml version="1.0" encoding="utf-8"?>

so it would seem reasonable for sax to be able to return 'utf-8' somehow. 
Am I missing something?

Edward
--------------------------------------------------------------------
Edward K. Ream   email:  [EMAIL PROTECTED]
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to