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

中文乱码问题 #6

Closed
ghost opened this issue Jun 9, 2020 · 2 comments
Closed

中文乱码问题 #6

ghost opened this issue Jun 9, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 9, 2020

自定义要导出的文件目录,程序读取信息需要设置成“utf-8”,否则会出现中文乱码匹配不上文件夹名
with open('config.json', 'r',encoding="utf-8")
其他读写文件的地方,建议都改成utf-8

@DeppWang
Copy link
Owner

DeppWang commented Jun 9, 2020

感谢指出,好的

@DeppWang
Copy link
Owner

DeppWang commented Jun 9, 2020

已改为使用字节写入和读取。

@DeppWang DeppWang closed this as completed Jun 9, 2020
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

1 participant