Skip to content

Commit e55d2cc

Browse files
committed
fix unicode issue
1 parent b9cb7b2 commit e55d2cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ebaysdk/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def _convert_dict_to_xml_recurse(parent, dictitem, listnames):
374374
parent.set(key, value) # TODO: will fail if attrs is not a dict
375375
if '#text' in dictitem.keys():
376376
text = dictitem.pop('#text')
377-
parent.text = str(text)
377+
parent.text = str(text).decode('utf-8')
378378
for (tag, child) in sorted(dictitem.items()):
379379
if isinstance(child, list):
380380
# iterate through the array and convert
@@ -388,7 +388,7 @@ def _convert_dict_to_xml_recurse(parent, dictitem, listnames):
388388
parent.append(elem)
389389
_convert_dict_to_xml_recurse(elem, child, listnames)
390390
elif not dictitem is None:
391-
parent.text = str(dictitem)
391+
parent.text = str(dictitem).decode('utf-8')
392392

393393

394394
def dict2et(xmldict, roottag='data', listnames=None):

0 commit comments

Comments
 (0)