Default decode in utf-8 in suds

463 views Asked by At

I had problems with coding with database name in Suds. This problem is solved in:

Python unicode Decode Error SUDs

The solution is to add decode('utf-8') after the property, like below

soap_fabric = soap.Fabric(
    color=article.color.decode('utf-8')
    articleNumber=shop_article.shop_article_nr,        
    supplier=article.supplier.name.decode('utf-8'),
    pluginFabricMemo.decode('utf-8')

I don't like to add this by each property. Does somebody know how to solve this issue beter?

0

There are 0 answers