From 56e83fa098f8ba80398a5df5d1f06a4edeeac414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=95=E8=B0=B7=E9=85=B1?= <74496778+GooGuJiang@users.noreply.github.com> Date: Thu, 21 Aug 2025 21:16:22 +0800 Subject: [PATCH] fix gbk error --- app/models/mods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mods.py b/app/models/mods.py index 49a479e..f407500 100644 --- a/app/models/mods.py +++ b/app/models/mods.py @@ -80,7 +80,7 @@ class Mod(TypedDict): API_MODS: dict[Literal[0, 1, 2, 3], dict[str, Mod]] = {} mods_file = STATIC_DIR / "mods.json" -raw_mods = json.loads(mods_file.read_text()) +raw_mods = json.loads(mods_file.read_text(encoding="utf-8")) for ruleset in raw_mods: ruleset_mods = {} for mod in ruleset["Mods"]: