Skip to content

Commit

Permalink
Merge pull request #17 from dctrud/unicode
Browse files Browse the repository at this point in the history
Allow unicode entries without codec error, fix #16
  • Loading branch information
ewsterrenburg authored Jun 15, 2016
2 parents cb8bea1 + fb25e72 commit 55ded24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otrs/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def to_xml(self):
e = etree.Element(k)
if isinstance(e, str): # True
v = v.encode('utf-8')
e.text = str(v)
e.text = unicode(v)
root.append(e)
return root

Expand Down

0 comments on commit 55ded24

Please sign in to comment.