Skip to content

Commit

Permalink
utf-8 encoding for schema file
Browse files Browse the repository at this point in the history
Explicitly specify encoding (utf-8) when open schema file.

Signed-off-by: Grixa Yrev <[email protected]>
  • Loading branch information
GrixaYrev committed Jan 16, 2025
1 parent 26abd2e commit 3e8d60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonschema2rst/parser_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3e8d60b

Please sign in to comment.