##// 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 filename = dialog.selectedFiles()[0]
29 filename = dialog.selectedFiles()[0]
30 f = open(filename, 'w')
30 f = open(filename, 'w')
31 try:
31 try:
32 f.write(string)
32 f.write(string.encode('UTF-8'))
33 finally:
33 finally:
34 f.close()
34 f.close()
35 return filename
35 return filename
General Comments 0
You need to be logged in to leave comments. Login now