Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix UnicodeEncodeError writing SVG string to .svg file, fixes #489

  • Loading branch information...
commit 5acdcc184f701528102a81e39e9873e18e3ff443 1 parent 5163e14
@mspacek mspacek authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  IPython/frontend/qt/svg.py
View
2  IPython/frontend/qt/svg.py
@@ -29,7 +29,7 @@ def save_svg(string, parent=None):
filename = dialog.selectedFiles()[0]
f = open(filename, 'w')
try:
- f.write(string)
+ f.write(string.encode('UTF-8'))
finally:
f.close()
return filename
Please sign in to comment.
Something went wrong with that request. Please try again.