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环境打包tar.gz内部中文文件名乱码 #10

Open
dingjs opened this issue Apr 21, 2023 · 0 comments
Open

windows环境打包tar.gz内部中文文件名乱码 #10

dingjs opened this issue Apr 21, 2023 · 0 comments

Comments

@dingjs
Copy link

dingjs commented Apr 21, 2023

如题 。
解决方案:
CompressKit.tarGz new TarArchiveOutputStream 时传 encoding 参数。

原来:

TarArchiveOutputStream taos = new TarArchiveOutputStream(gcos)

修改为:

TarArchiveOutputStream taos = new TarArchiveOutputStream(gcos, StandardCharsets.UTF_8.name())
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