dx icon indicating copy to clipboard operation
dx copied to clipboard

运行会出现UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 6报错

Open Triste-OT opened this issue 2 years ago • 1 comments

修改config/confile.py 第152行:

      with open(conf_file) as f:
           import yaml
           return yaml.safe_load(f.read())

修改为:

      with open(conf_file, encoding="utf-8") as f:
           import yaml
           return yaml.safe_load(f.read())

Triste-OT avatar Aug 20 '21 08:08 Triste-OT

好。我运行在linux,没用windows环境所以没发现。

py2010 avatar Nov 11 '21 08:11 py2010