iso-8859-2 in sax

Artur Skura arturs at iidea.pl
Sat Sep 15 07:21:59 EDT 2001


Has anyone succeeded in making 8859-2 encoding work in Python's xml.sax? 
If I put it in the header of my XML docs, it complains "unknown encoding",
(if I just ignore that, it chokes on first non-ASCII char anyway).
I think I should be able to declare some UnknownEncoding handler with
expat, but I don't know if it's possible in Python. Pity, because SAX
is ideal for what I'm doing now.

Regards,
Artur
-- 
http://www.wolneprogramy.org



More information about the Python-list mailing list