Open GoogleCodeExporter opened 8 years ago
I declare str for my strings parameters and decode to utf-8
(str().decode('utf-8')) in the server side. This solve my problems with
"'ascii' codec can't encode character ...". Best regards. Fernando.
Original comment by fpacheco.ingesur@gmail.com
on 28 Oct 2014 at 12:20
I have the same problem. Here is a minimal test case:
client = SoapClient(wsdl='https://open.helios.eu/Demo43/data.asmx?WSDL')
url = client.GetInfo('GETREDIRECTINFO')['GetInfoResult']
url += '/servicegate.asmx?WSDL'
client = SoapClient(wsdl=url)
r = client.LogOn(profile='Demo43', username='tester', password='tester')
The error returned is:
File "c:\Users\...\soap\env\lib\site-packages\pysimplesoap\simplexml.py", line 527, in unmarshall
elif str(node) or (fn == str and str(node) != ''):
UnicodeEncodeError: 'ascii' codec can't encode character u'\xab' in position
71: ordinal not in range(128)
Current master works for me. Could you please release new version?
Original comment by zbynek.winkler
on 21 Nov 2014 at 3:25
Original issue reported on code.google.com by
g...@fridental.de
on 16 Oct 2014 at 3:31