Python SUDS - problem with sending a message encoded not in UTF-8

Posted by bartekb on Stack Overflow See other posts from Stack Overflow or by bartekb
Published on 2010-06-09T14:15:03Z Indexed on 2010/06/09 14:22 UTC
Read the original article Hit count: 353

Filed under:
|
|
|
|

I need to send a SOAP message (with Python SUDS) with strings encoded in 'iso-8859-2'. Does anybody know how to do it?

SUDS raises the following exception when I invoke a method on a client with parameters encoded in 'iso-8859-2':

File "/home/bartek/myenv/lib/python2.5/site-packages/suds/sax/text.py", line 43, in __new__
   result = super(Text, cls).__new__(cls, *args, **kwargs)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 10: ordinal not in range(128)

© Stack Overflow or respective owner

Related posts about python

Related posts about django