diff --git a/src/plugins/docgen/ODFDoc.py b/src/plugins/docgen/ODFDoc.py index 5297e01d4..031261318 100644 --- a/src/plugins/docgen/ODFDoc.py +++ b/src/plugins/docgen/ODFDoc.py @@ -531,9 +531,10 @@ class ODFDoc(BaseDoc.BaseDoc, BaseDoc.TextDoc, BaseDoc.DrawDoc): self.cntnt.write('') def _add_zip(self, zfile, name, data, t): - zipinfo = zipfile.ZipInfo(name.encode('latin-1')) + zipinfo = zipfile.ZipInfo(name.encode('utf-8')) zipinfo.date_time = t zipinfo.compress_type = zipfile.ZIP_DEFLATED + zipinfo.external_attr = 0644 << 16L zfile.writestr(zipinfo, data) def _write_zip(self):