Restore utf-8 compatibility for python 2
This commit is contained in:
parent
59ada9b1b4
commit
b48e0e9eb5
@ -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 = """\
|
||||||
|
Loading…
Reference in New Issue
Block a user