mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-01-29 22:00:30 +08:00
配置文件兼容带BOM的UTF-8
This commit is contained in:
parent
6a4faa83a4
commit
8780655341
@ -62,7 +62,7 @@ class AppConfig:
|
|||||||
def load(self, path):
|
def load(self, path):
|
||||||
try:
|
try:
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read(path, 'utf-8')
|
config.read(path, 'utf-8-sig')
|
||||||
|
|
||||||
self._load_app_config(config)
|
self._load_app_config(config)
|
||||||
self._load_translator_configs(config)
|
self._load_translator_configs(config)
|
||||||
|
Loading…
Reference in New Issue
Block a user