Merge pull request #475 from campagnola/fix-svg-unicode-export

Fixed unicode error when exporting to SVG with non-ascii symbols
This commit is contained in:
Luke Campagnola 2017-05-01 10:24:07 -07:00 committed by GitHub
commit d73036e0ef

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