mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-13 18:11:03 +08:00
Fix uft-8 problem
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user