diff --git a/scraper/src/mindtouch2zim/processor.py b/scraper/src/mindtouch2zim/processor.py index 6a23802..fc02bf6 100644 --- a/scraper/src/mindtouch2zim/processor.py +++ b/scraper/src/mindtouch2zim/processor.py @@ -640,7 +640,7 @@ def _add_indexing_item_to_zim( creator=creator, title=title, path="index/" + fname, - content=bytes(html_content, "utf-8"), + content=html_content.encode("utf-8"), mimetype="text/html", index_data=IndexData(title=title, content=content), )