Skip to content

Commit

Permalink
Fix exporting fit to XML when name is unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed Jan 3, 2016
1 parent 4a66fa0 commit ad738f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/mainFrame.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
import wx
import time

from codecs import open

from wx._core import PyDeadObjectError
from wx.lib.wordwrap import wordwrap

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ad738f7

Please sign in to comment.