On 06/03/11 15:32, Ernesto Revilla Derksen wrote:
> 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.
>
>
interesting. do file a bug report (register here:
https://admin.fedoraproject.org/accounts/user/new) but i don't think
you'd get anybody's attention as the workaround is quite simple.
best,
burak
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap