From 6fb177700a09dc1f12b74ea4fbb54321d83f086b Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Wed, 22 Mar 2023 22:12:19 +0800 Subject: [PATCH] Fix uft-8 problem --- src/module/conf/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/conf/config.py b/src/module/conf/config.py index 9090f1c4..1701582f 100644 --- a/src/module/conf/config.py +++ b/src/module/conf/config.py @@ -36,7 +36,7 @@ class Settings: if path is None: conf = DEFAULT_SETTINGS elif os.path.isfile(path): - with open(path, "r") as f: + with open(path, "r", encoding="utf-8") as f: conf = json.load(f) else: conf = self._create_config()