From 08597ca9a1de4c3e2e5e9dbf878fff7fe7ad8df3 Mon Sep 17 00:00:00 2001 From: robinjhuang Date: Thu, 13 Feb 2025 12:01:28 -0800 Subject: [PATCH] Using utf-8 encoding for yaml files. --- utils/extra_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/extra_config.py b/utils/extra_config.py index d7b592855cd..b7196e36fa3 100644 --- a/utils/extra_config.py +++ b/utils/extra_config.py @@ -4,7 +4,7 @@ import logging def load_extra_path_config(yaml_path): - with open(yaml_path, 'r') as stream: + with open(yaml_path, 'r', encoding='utf-8') as stream: config = yaml.safe_load(stream) yaml_dir = os.path.dirname(os.path.abspath(yaml_path)) for c in config: