Hi.

Suds is a neat piece of work, I love it.

I just wanted to put a bug, but can't see how to sign up trac.

suppose the remote service as a "hello" or "echo" or "ping" method, and
console is UTF-8, and python 2.6.6 / Ubuntu 64:
>>> from suds.client import Client
>>> c = Client("http://csa-dev.yaco.es/soap/user_management/?wsdl";)
>>> z = c.service.hello("¿cómo está?")
>>> z
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbf' in position
6: ordinal not in range(128)
>>> print z
Hello ¿cómo está?
>>> type(z)
<class 'suds.sax.text.Text'>
>>> unicode(z)
u'Hello \xbfc\xf3mo est\xe1?'

i.e.: suds.sax.text.Text.__repr__ fails.

but what is really strange is, when I follow the same steps of Text.__repr__
is does not fail:
>>> "".join([z])
u'Hello \xbfc\xf3mo est\xe1?'

Really strange error. I just tried with Python2.5 and the same happens.

Regards.
Erny
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to