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

运行报错 #1

Open
yanhonglin opened this issue Mar 31, 2023 · 4 comments
Open

运行报错 #1

yanhonglin opened this issue Mar 31, 2023 · 4 comments

Comments

@yanhonglin
Copy link

Traceback (most recent call last):
File "D:\Python\wxUnpacker-main\wxUnpacker-main\wx.py", line 490, in
main()
File "D:\Python\wxUnpacker-main\wxUnpacker-main\wx.py", line 463, in main
process_package(buf)
File "D:\Python\wxUnpacker-main\wxUnpacker-main\wx.py", line 141, in process_package
write_file(fname, content, "w")
File "D:\Python\wxUnpacker-main\wxUnpacker-main\wx.py", line 88, in write_file
f.write(buf)
UnicodeEncodeError: 'gbk' codec can't encode character '\xa5' in position 147280: illegal multibyte sequence

win11 python3.9 运行报错 请问这个怎么解决啊,能否加个联系方式

@TsingShui
Copy link

windows 下是会有问题,mac下畅通无阻

@yanhonglin
Copy link
Author

大佬 知道怎么解决吗

@TsingShui
Copy link

这个拆包目前也有点问题,修了也没啥用。

@yad1d1
Copy link

yad1d1 commented Jul 3, 2023

检查下代码中的open方法,如果是"r"和"w"模式,加个编码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

3 participants