-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
encoding/gcompress: 包含中文文件名的zip解压乱码 #3980
Comments
猜测是编码与解码的中文编码不一致造成的,尤其是zip打包使用的是 |
The guess is that the encoding and decoding are inconsistent with the Chinese encoding, especially the zip packaging uses |
haha ..我比较菜 , 做不了贡献, 直接在百度找了一个能用的将就用用. 我猜测go标准库也会这样. 这是百度找的可运行的代码 |
haha... I'm a noob and can't contribute much, so I just found a working one on Baidu and just used it. I guess the same goes for the go standard library. This is the executable code found by Baidu |
Go version
go 1.20
GoFrame version
2.8.1
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
测试代码:
测试代码.zip
What did you see happen?
包含中文文件名的zip解压乱码,
What did you expect to see?
希望解压的时候, 可以判断下文件名编码.
我在百度找了一个不会乱码的, 上传上来供你参考.
main.zip
The text was updated successfully, but these errors were encountered: