[XML-SIG] xmlproc bug?
Martin v. Loewis
Fri, 4 May 2001 23:39:33 +0200
> If you feed() a unicode string into an xmlproc parser, Python barfs at
> line 234
> # ignore unusal byte orders 2143 and 3412
> elif new_data[:2] == '\xfe\xff':
> enc = "utf-16-be" # with BOM
> because apparently it is trying to convert the string to unicode and
> it's got 8bit characters.
> Not sure what the right thing to do is.
My intuition is that feeding Unicode objects is an error, but that may