XML: minidom toxml() does not work for non English files! :-(
Brian Quinlan
brian at sweetapp.com
Mon May 6 17:53:32 EDT 2002
> Well, at the start of the __init__ we see:
>
> self.buf = str(buf)
> self.len = len(buf)
>
> This is clearly wrong, and the second line should be
>
> self.len = len(buf)
>
> This is why you are only getting three characters back!
Even ignoring that fact, the coercion to string seems like a mistake.
Implicit type conversion is bad.
Cheers,
Brian
More information about the Python-list
mailing list