minidom and åäö once again :-P

Martin v. Löwis loewis at informatik.hu-berlin.de
Wed Apr 17 11:26:34 EDT 2002


Magnus Heino <magnus.heino at pleon.sigma.se> writes:

> If i replace åäö below with codecs.utf_8_encode('åäö')[0], then
> parseString is happy.

I'm not sure what precisely you are replacing. In the code, those
three characters only appear inside of a string literal.

> toxml() doesnt produce a u'' string though, so I have to do 
> unicode(doc.toxml()) and then feed that into parseString.

Yes, that's a bug in StringIO of Python 2.2.

Regards,
Martin



More information about the Python-list mailing list