[XML-SIG] xmlproc bug ?

Juergen Hermann Juergen Hermann" <jh@web.de
Thu, 06 Sep 2001 16:31:09 +0200


On Thu, 6 Sep 2001 15:59:09 +0200 (CEST), Alexandre Fayolle wrote:

>In my original mail I said I was able to reproduce the problem using bo=
th
>python 1.5.2 and python 2.1.1, both having PyXML 0.6.6 installed. I gue=
ss
>the reason why J=FCrgen could reproduce it with python 2.0 and not Pyth=
on
>2.1 is that his python 2.1 installation has PyXML 0.7 installed, wherea=
s
>the 2.0 install has 0.6.6 (or earlier). 

Note that your ORIGINAL source fails with 2.1/0.7, too. Is there a way t=
o 
register a default encoding with str()? I just tried setlocale(), and th=
at 
did not change anything.

With Python 2.1:

>>> x=3D"=F6=E4=FC=D6=C4=DC=DF"
>>> u=3Dunicode(x, "iso-8859-1")
>>> print x
=F6=E4=FC=D6=C4=DC=DF
>>> print u

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
UnicodeError: ASCII encoding error: ordinal not in range(128)