From 3e8d60b0762ede53c013a56254aed3f7a2df6332 Mon Sep 17 00:00:00 2001 From: Grixa Yrev Date: Mon, 30 Sep 2024 18:29:04 +0300 Subject: [PATCH] utf-8 encoding for schema file Explicitly specify encoding (utf-8) when open schema file. Signed-off-by: Grixa Yrev --- jsonschema2rst/parser_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonschema2rst/parser_runner.py b/jsonschema2rst/parser_runner.py index 7c9bce7..6486b49 100644 --- a/jsonschema2rst/parser_runner.py +++ b/jsonschema2rst/parser_runner.py @@ -99,7 +99,7 @@ def run_parser( file_name = os.path.join(root, name) - with open(file_name) as schema: + with open(file_name, encoding='utf-8') as schema: rst_content = schema2rst(schema, excluded_key) output = os.path.join(output_folder, _get_rst_name(name))