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:
commit
d73036e0ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user