Skip to content

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

@Triste-OT

Description

@Triste-OT

修改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())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions