Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows下utf-8编码问题 #3

Open
ArthurSun1 opened this issue Apr 24, 2022 · 1 comment
Open

windows下utf-8编码问题 #3

ArthurSun1 opened this issue Apr 24, 2022 · 1 comment

Comments

@ArthurSun1
Copy link

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")

@F6JO
Copy link
Owner

F6JO commented Apr 25, 2022

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")

有报错信息的图片吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants