diff --git a/json-checker.py b/json-checker.py index a6c1317f..60a75649 100644 --- a/json-checker.py +++ b/json-checker.py @@ -3,7 +3,7 @@ import argparse def check_json_syntax(file_path): try: - with open(file_path, 'r') as file: + with open(file_path, 'r', encoding='utf-8') as file: json_str = file.read() json.loads(json_str) print(f"[ OK ] {file_path}")