[Soap-Python] UnicodeDecode error while passing parameters withfrench letters

Thomas AYIH-AKAKPO thomas.akakpo at gmail.com
Fri Apr 13 16:52:22 CEST 2012


Le 13/04/2012 17:17, Burak Arslan a écrit :
>
> bonjour thomas,
>
> you did not send the full stack dump you're getting, but i suspect 
> that's a suds error and not a soaplib/rpclib one.
>
> https://github.com/plq/rpclib/commit/16e1e7c26ab52840ad63e4d590b39fd98af39745 
> and this works:
>
> ===================
> #encoding: utf8
>
> from suds.client import Client
>
> wsdl = Client('http://localhost:7789/?wsdl')
> print wsdl.service.say_hello(u'Jérôme', 5)
> ===================
>
> Note the unicode string literal.
>
> Best,
> Burak
>

Bonjour Burak!
Right, I just realized that the error is on the client side.
By setting the encoding to utf-8 for all the clients, there's no more
error.

Thank you all for your help! :)

--
Thomas



More information about the Soap mailing list