sjisunzip
sjisunzip copied to clipboard
A rather stupid simple program to unbreak s-jis encoded filenames in a zip since nobody else seems to want to do it.
sjisunzip
This is a pretty braindead command line utility that simply forces the encoding to the right values to extract a Shift JIS encoded zip file ('Code page 932') on a western/ansi encoding system.
Usage:
sjisunzip someFile.zip [toFolder]
sjisunzip [-r] someFile.zip
-r: Recode file to {filename}_utf8.zip
Examples:
sjisunzip aFile.zip
sjisunzip aFile.zip MyNewFolder
You can also just drop a zip file onto the program since that'll pass it as the first argument and the contents will be extracted in the same directory.
If you've ever received a zip file from a friend, or the wrong damn gnu mirror or whatever that passed through Japan then you've probably seen garbled filenames

Well this program forces the opened zip to the correct encoding then extracts the file to a more reasonable UTF encoding.

You can even just reencode the zip file to a less busted-ass one so you don't have this creeping horror issue in the future

The filenames and paths should be untangled when done.

Bonus fact: When this type of transitive corruption occurs, the output characters are called Mojibake. That's almost cute enough to not be awful anymore.