Skip to content

windows下utf-8编码问题 #3

@ArthurSun1

Description

@ArthurSun1

system/exec_command.py:
def dismap_cms(cmd):
b = os.popen(cmd)
msg = b.buffer.read().decode('utf-8')
return msg

controller/controller.py:
第68行
file = open(f'{path}/output.txt','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