mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
ZipArchive Reader: File name and comments should not be decoded using UTF8 if the general purpose bit 11 is not set in the header #285
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sridhar6668 on GitHub (Mar 27, 2018).
As per the zip format specification, If general purpose bit 11 is unset, the file name and comment should conform to the original ZIP character encoding(IBM PC character encoding set). Currently, the code always uses the UTF8 to decode the name and comment and it results in garbled strings if the name was encoded using IBM PC character encoding set.