diff --git a/docxtpl/template.py b/docxtpl/template.py index 0b81868..b246ca7 100644 --- a/docxtpl/template.py +++ b/docxtpl/template.py @@ -370,7 +370,7 @@ def render_footnotes( else part.blob ) xml = self.render_xml_part(xml, part, context, jinja_env) - part._blob = xml + part._blob = xml.encode("utf-8") def resolve_listing(self, xml):