Skip to content

Commit f558f16

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

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 = six.text_type(etree.tostring(t, xml_declaration=True), 'utf-8')
178+
xml = six.text_type(etree.tostring(t, encoding='utf-8', 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)