Skip to content

Commit 2777afc

Browse files
author
Leif Johansson
committed
fix encoding
1 parent a2c86b4 commit 2777afc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/xmlsec/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def b64e(s):
175175

176176

177177
def serialize(t, stream=None):
178-
xml = etree.tostring(t, xml_declaration=True)
178+
xml = six.text_type(etree.tostring(t, xml_declaration=True), 'utf-8')
179179
if stream is not None:
180180
with open(stream, 'w') as xml_out:
181181
xml_out.write(xml)

0 commit comments

Comments
 (0)