From 7c4193e8325fa914d92287dd4dfdb8fc004cd5c6 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 12 Sep 2015 17:29:41 +0100 Subject: Read embedded style if available --- mammoth/zips.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mammoth/zips.py') 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) -- cgit v1.2.3