8764: [Compare Individual Events :Tool ]
Selecting "Save" causes a UnicodeEncodeError error
This commit is contained in:
parent
ed6ffd03fa
commit
a6712e151a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user