diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-09-12 17:29:41 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-09-12 17:29:41 +0100 |
| commit | 7c4193e8325fa914d92287dd4dfdb8fc004cd5c6 (patch) | |
| tree | 710f1b9baf0441ceb6991e6407d4886fefca147b /mammoth/zips.py | |
| parent | 2cf770c98de1851d9859e2787e10f0b77bcc7956 (diff) | |
Read embedded style if available
Diffstat (limited to 'mammoth/zips.py')
| -rw-r--r-- | mammoth/zips.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/zips.py b/mammoth/zips.py index 432be5d..4d77acb 100644 --- a/mammoth/zips.py +++ b/mammoth/zips.py @@ -42,7 +42,7 @@ def update_zip(fileobj, files): names = set(source.namelist()) | set(files.keys()) for name in names: if name in files: - contents = files[name] + contents = files[name].encode("utf8") else: contents = source.read(name) destination.writestr(name, contents) |
