Skip to content

Fix ZIP filename encoding for Chinese and Japanese files#1535

Open
mizuresort wants to merge 1 commit intomicrosoft:mainfrom
mizuresort:fix-unicode-issue
Open

Fix ZIP filename encoding for Chinese and Japanese files#1535
mizuresort wants to merge 1 commit intomicrosoft:mainfrom
mizuresort:fix-unicode-issue

Conversation

@mizuresort
Copy link

This PR fixes garbled ZIP filenames for non-UTF8 encodings.

It normalizes ZIP entry names by trying multiple encodings:

  • UTF-8
  • CP932 (Japanese)
  • GBK / BIG5 (Chinese)

It also skips macOS metadata files (e.g., _MACOSX/, . files)
to avoid showing non-user content.

This allows international filenames to be displayed correctly.

@mizuresort
Copy link
Author

@microsoft-github-policy-service agree

@oxygen-dioxide
Copy link

This PR works for me. It fixes my issue #1506

@mizuresort
Copy link
Author

Thanks for linking your issue and confirming the fix!
I'm glad I could help with your issue :)

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

Successfully merging this pull request may close these issues.

2 participants