https://github.com/mixcode/codepage-unzip
A tool to unzip non-unicode ZIP archives with proper codepage handling
https://github.com/mixcode/codepage-unzip
Last synced: 5 months ago
JSON representation
A tool to unzip non-unicode ZIP archives with proper codepage handling
- Host: GitHub
- URL: https://github.com/mixcode/codepage-unzip
- Owner: mixcode
- License: bsd-3-clause
- Created: 2023-08-24T07:59:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-25T07:10:34.000Z (almost 3 years ago)
- Last Synced: 2024-04-17T16:13:49.437Z (about 2 years ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# codepage-unzip: A tool to unzip non-unicode ZIP archives with proper codepage handling
Standard Unix/Linux **unzip** does not go well with old, non-unicode ZIPs.
This tool properly creates unicode filenames from such old ZIP files.
## Install
With a go commandline,
```
go install github.com/mixcode/codepage-unzip@latest
```
## Usage
```
codepage-unzip -f CHARACTER_ENCODING ZIP_FILENAME
```
CHARACTER_ENCODING is the filename encoding of the zip archive.
This tool internally use iconv for character conversion, so the encoding name should same characterset name of iconv tool.
You may get a list of character encodings with the command `iconv --list`
### Example: decompress a zip with Japanese filenames.
```
codepage-unzip -f SHIFT-JIS japanese_zip_archive.zip
```