Fixed unicode error when exporting to SVG with non-ascii symbols

This commit is contained in:
Luke Campagnola 2017-05-01 09:34:37 -07:00
parent 4cdc3ac7e5
commit d36a161f31

View File

@ -190,7 +190,7 @@ def _generateItemSvg(item, nodes=None, root=None):
xmlStr = str(arr)
else:
xmlStr = bytes(arr).decode('utf-8')
doc = xml.parseString(xmlStr)
doc = xml.parseString(xmlStr.encode('utf-8'))
try:
## Get top-level group for this item