From 87806553411f763cd1644f7d05827a7d7f257bc1 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sat, 17 Jul 2021 13:17:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E5=B8=A6BOM=E7=9A=84UTF-8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 47aa3c8..cbb77a7 100644 --- a/config.py +++ b/config.py @@ -62,7 +62,7 @@ class AppConfig: def load(self, path): try: config = configparser.ConfigParser() - config.read(path, 'utf-8') + config.read(path, 'utf-8-sig') self._load_app_config(config) self._load_translator_configs(config)