Use UTF-8 when loading JSON

This commit is contained in:
Paul
2024-07-01 14:40:55 +00:00
parent f221cd3eb4
commit 8bf6e0b2e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ def create_comfyui_nodes_from_schemas(schemas_dir):
schemas_dir_path = os.path.join(current_path, schemas_dir)
for schema_file in os.listdir(schemas_dir_path):
if schema_file.endswith(".json"):
with open(os.path.join(schemas_dir_path, schema_file), "r") as f:
with open(os.path.join(schemas_dir_path, schema_file), "r", encoding="utf-8") as f:
schema = json.load(f)
node_name, node_class = create_comfyui_node(schema)
nodes[node_name] = node_class