aboutsummaryrefslogtreecommitdiff
path: root/mammoth/zips.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-09-12 17:29:41 +0100
committerMichael Williamson <mike@zwobble.org>2015-09-12 17:29:41 +0100
commit7c4193e8325fa914d92287dd4dfdb8fc004cd5c6 (patch)
tree710f1b9baf0441ceb6991e6407d4886fefca147b /mammoth/zips.py
parent2cf770c98de1851d9859e2787e10f0b77bcc7956 (diff)
Read embedded style if available
Diffstat (limited to 'mammoth/zips.py')
-rw-r--r--mammoth/zips.py2
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)