Skip to content

解决了py.3x的中文乱码问题 #3

@pearlNi

Description

@pearlNi

CSND不给评论两次,找到了py.3x中文乱码的解决办法,分享在这里吧…

在HTMLTestRunner修改 # self.stream.write(output.encode('utf-8')) 为 self.stream.write(output);然后在openfile的时候加入编码 with open('HTMLReport.html', 'w', encoding='utf-8') as f:

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