Extract Mojibake ZIP file correctly.
⚠️ It is a pre-release version.
🛑 Please back up your files before trying it.
Readme Languages: English, 正體中文
- Filenames in the archive are mojibake;
- Directories expansion incorrectly (because
\
and/
might be eaten by wrong decoding); - Extract password has non-CP437 characters (only English and some symbols, etc.), provide the correct password but prompt the password is wrong.
- Python 3
git clone
cd
pip install .
See vazip --help
.
Usage: vazip [OPTIONS] ZIP_FILE
vaZip -- unzip with a specific code page.
Options:
-h, --help Show this message and exit.
-v, --version Show the version and exit.
-e, --extract <DIR> Extract the zip file to <DIR>.
-c, --coding <CODEC> Python acceptable code page string, listed
here: "https://docs.python.org/3/library/codecs
.html#standard-encodings". [default: CP437]
-p, --pwd, --password <PWD> When extracting, password is required if the
zip file is encrypted.
-s, --separate Extract the zip file to separate folder.
--ignore-efs Ignore EFS flag. [default: False]
--yes Ignore confirmation before extraction.
--debug tl;dr
ex.1 list with codec ShiftJIS
vazip "archived_files.zip" -c shiftjis
ex.2 extract to cwd (current working directory)
vazip "archived_files.zip" -c shiftjis -e .
ex.3 extract to separate folder (dst in ./archived_files/*
)
vazip "archived_files.zip" -c shiftjis -e . -s