Skip to content
forked from kjerk/sjisunzip

A rather stupid simple program to unbreak s-jis encoded filenames in a zip since nobody else seems to want to do it.

License

Notifications You must be signed in to change notification settings

catchra/sjisunzip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Download Here

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 example_1

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

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 example_3

The filenames and paths should be untangled when done. example_4

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.

About

A rather stupid simple program to unbreak s-jis encoded filenames in a zip since nobody else seems to want to do it.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%