Skip to content

Commit 124ec45

Browse files
authored
Add "encoding='utf-8'"
1 parent 2d73891 commit 124ec45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/train_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3474,7 +3474,7 @@ def read_config_from_file(args: argparse.Namespace, parser: argparse.ArgumentPar
34743474
exit(1)
34753475

34763476
logger.info(f"Loading settings from {config_path}...")
3477-
with open(config_path, "r") as f:
3477+
with open(config_path, "r", encoding='utf-8') as f:
34783478
config_dict = toml.load(f)
34793479

34803480
# combine all sections into one

0 commit comments

Comments
 (0)