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): ...@@ -92,8 +92,8 @@ class SVGExporter(Exporter):
md.setData('image/svg+xml', QtCore.QByteArray(xml.encode('UTF-8'))) md.setData('image/svg+xml', QtCore.QByteArray(xml.encode('UTF-8')))
QtGui.QApplication.clipboard().setMimeData(md) QtGui.QApplication.clipboard().setMimeData(md)
else: else:
with open(fileName, 'wt') as fh: with open(fileName, 'wb') as fh:
fh.write(asUnicode(xml)) fh.write(asUnicode(xml).encode('utf-8'))
xmlHeader = """\ 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