Commit b48e0e9e authored by Guillaume Poulin's avatar Guillaume Poulin
Browse files

Restore utf-8 compatibility for python 2

parent 59ada9b1
......@@ -92,8 +92,8 @@ class SVGExporter(Exporter):
md.setData('image/svg+xml', QtCore.QByteArray(xml.encode('UTF-8')))
QtGui.QApplication.clipboard().setMimeData(md)
else:
with open(fileName, 'wt') as fh:
fh.write(asUnicode(xml))
with open(fileName, 'wb') as fh:
fh.write(asUnicode(xml).encode('utf-8'))
xmlHeader = """\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment