From 1721c82abdbd7f2377c88082e56a9f10bf3ce54f Mon Sep 17 00:00:00 2001 From: benoit74 Date: Tue, 29 Oct 2024 16:26:56 +0000 Subject: [PATCH] Small fix --- scraper/src/mindtouch2zim/processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), )