##// END OF EJS Templates
fix UnicodeEncodeError writing SVG string to .svg file, fixes #489
Martin Spacek -
Show More
@@ -29,7 +29,7 b' def save_svg(string, parent=None):'
29 29 filename = dialog.selectedFiles()[0]
30 30 f = open(filename, 'w')
31 31 try:
32 f.write(string)
32 f.write(string.encode('UTF-8'))
33 33 finally:
34 34 f.close()
35 35 return filename
General Comments 0
You need to be logged in to leave comments. Login now