Can't use custom decoder or default encoding for ZIP without UTF8 supporting #297

Closed
opened 2026-01-29 22:09:39 +00:00 by claunia · 6 comments
Owner

Originally created by @saragulov on GitHub (May 14, 2018).

Originally assigned to: @adamhathcock on GitHub.

After fix https://github.com/adamhathcock/sharpcompress/pull/363 it became impossible to use custom decoder or default encoding for ZIP with null bit 11. However, archives created by Windows 10 tools do not use the IBM 437 encoding. It looks like they use the current user encoding. Previously, you could specify it as the default encoding and the names were decoded successfully. But now it doesn't work.

Originally created by @saragulov on GitHub (May 14, 2018). Originally assigned to: @adamhathcock on GitHub. After fix https://github.com/adamhathcock/sharpcompress/pull/363 it became impossible to use custom decoder or default encoding for ZIP with null bit 11. However, archives created by Windows 10 tools do not use the IBM 437 encoding. It looks like they use the current user encoding. Previously, you could specify it as the default encoding and the names were decoded successfully. But now it doesn't work.
claunia added the bug label 2026-01-29 22:09:39 +00:00
Author
Owner

@saragulov commented on GitHub (May 14, 2018):

Example.zip
See this example zip archive.

@saragulov commented on GitHub (May 14, 2018): [Example.zip](https://github.com/adamhathcock/sharpcompress/files/2001325/Example.zip) See this example zip archive.
Author
Owner

@adamhathcock commented on GitHub (May 14, 2018):

You're right....I will fix this now.

@adamhathcock commented on GitHub (May 14, 2018): You're right....I will fix this now.
Author
Owner

@adamhathcock commented on GitHub (May 14, 2018):

@saragulov look at the PR and see if this works for you...I can merge and do a bugfix release if so. I believe using Forced to override seems correct.

@adamhathcock commented on GitHub (May 14, 2018): @saragulov look at the PR and see if this works for you...I can merge and do a bugfix release if so. I believe using Forced to override seems correct.
Author
Owner

@saragulov commented on GitHub (May 15, 2018):

Thank you for fix again. Can you do a bugfix release?

@saragulov commented on GitHub (May 15, 2018): Thank you for fix again. Can you do a bugfix release?
Author
Owner

@adamhathcock commented on GitHub (May 15, 2018):

https://www.nuget.org/packages/sharpcompress/0.21.1

@adamhathcock commented on GitHub (May 15, 2018): https://www.nuget.org/packages/sharpcompress/0.21.1
Author
Owner

@saragulov commented on GitHub (May 15, 2018):

Thank you very much! Been waiting for the RAR5 support

@saragulov commented on GitHub (May 15, 2018): Thank you very much! Been waiting for the RAR5 support
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#297