8764: [Compare Individual Events :Tool ]
Selecting "Save" causes a UnicodeEncodeError error
This commit is contained in:
1 parent
ed6ffd03fa
commit
a6712e151a
2 files changed
+2
-1
No files matched your search
@@ -341,7 +341,7 @@ class ODSTab(TabbedDoc):
|
||||
except:
|
||||
raise ReportError(_("Could not create %s") % self.content_xml)
|
||||
|
||||
self.f = open(self.content_xml,"w")
|
||||
self.f = open(self.content_xml,"w", encoding='utf-8')
|
||||
self.f.write(
|
||||
'<?xml version="1.0" encoding="UTF-8"?>\n' +
|
||||
'<office:document-content ' +
|
||||
|
||||
@@ -391,6 +391,7 @@ class DisplayChart(ManagedWindow):
|
||||
|
||||
def on_write_table(self, obj):
|
||||
f = Gtk.FileChooserDialog(_("Select filename"),
|
||||
parent=self.window,
|
||||
action=Gtk.FileChooserAction.SAVE,
|
||||
buttons=(_('_Cancel'),
|
||||
Gtk.ResponseType.CANCEL,
|
||||
|
||||
Reference in new issue
Block a user