From ad738f7e7c484832ea75de7a9bcebe652accfc64 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sun, 3 Jan 2016 00:06:53 -0500 Subject: [PATCH] Fix exporting fit to XML when name is unicode --- gui/mainFrame.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/mainFrame.py b/gui/mainFrame.py index 01e44439c9..f191c8f19b 100644 --- a/gui/mainFrame.py +++ b/gui/mainFrame.py @@ -24,6 +24,8 @@ import wx import time +from codecs import open + from wx._core import PyDeadObjectError from wx.lib.wordwrap import wordwrap @@ -385,7 +387,7 @@ def showExportDialog(self, event): print "oops, invalid fit format %d" % format dlg.Destroy() return - file = open(path, "w") + file = open(path, "w", encoding="utf-8") file.write(output) file.close() dlg.Destroy()