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)
|
xmlStr = str(arr)
|
||||||
else:
|
else:
|
||||||
xmlStr = bytes(arr).decode('utf-8')
|
xmlStr = bytes(arr).decode('utf-8')
|
||||||
doc = xml.parseString(xmlStr)
|
doc = xml.parseString(xmlStr.encode('utf-8'))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
## Get top-level group for this item
|
## Get top-level group for this item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user