Skip to content

解决gbk错误的方法 #2

@wangjinhe

Description

@wangjinhe

运行报错:"UnicodeDecodeError: ‘gbk’ codec can’t decode bytes in position 2-3: illegal multibyte sequence"

修改testPMI.py 中的
f = open(testfile, 'r')
修改为
f = open(testfile, 'r',encoding= 'utf-8')

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