From 630a84ce93754598c93d4786929973a81d23a913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Jagie=C5=82=C5=82o?= Date: Sun, 25 May 2025 11:33:34 +0200 Subject: [PATCH] [FIX] Set utf-8 encoding while reading description.json file Set utf-8 enconding for description.json for better compatibility between windows/linux for special characters. --- mark2epub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mark2epub.py b/mark2epub.py index 851ef00..410b76f 100755 --- a/mark2epub.py +++ b/mark2epub.py @@ -245,7 +245,7 @@ def get_chapter_XML(md_filename,css_filenames): ## Reading the JSON file containing the description of the eBook ## and compiling the list of relevant Markdown, CSS, and image files - with open(os.path.join(work_dir,"description.json"),"r") as f: + with open(os.path.join(work_dir,"description.json"),"r",encoding="utf-8") as f: json_data = json.load(f) all_md_filenames=[]