From b0621b48e63e86e9f55e0d85fd9161f60b018df9 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Sun, 12 Nov 2023 00:10:43 +0800 Subject: [PATCH] fix(webui): use utf-8 encoding for icon reading --- module/webui/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/webui/utils.py b/module/webui/utils.py index 7cd3a35..7f29131 100644 --- a/module/webui/utils.py +++ b/module/webui/utils.py @@ -376,7 +376,7 @@ def add_css(filepath): def _read(path): - with open(path, "r") as f: + with open(path, "r", encoding="utf-8") as f: return f.read()