The tool used is the Lsar/unar tool provided by the Unarchiver project.
The Unarchiver Project home: http://code.google.com/p/theunarchiver/
Installation (12.04 and above):
Code:
sudo apt-get install Unar
12.04 below or want to compile the installation of friends please refer to:
viewtopic.php?f=35&t=353426
Use:
If you need to unzip the ZIP package is foo.zip
Code:
Lsar Foo.zip #列出全部文件
Assume that the file name listed is correct
Code:
Unar Foo.zip #解压全部文件
Assume that the file name listed is not yet
Code:
LSAR-E GB18030 Foo.zip #指定使用GB18030编码列出全部文件
UNAR-E GB18030 Foo.zip #指定使用GB18030解压全部文件
Note: GB18030 encoded file name zip file is generally produced by the Chinese Simplified version of Windows, for the traditional Chinese version of Windows generated by the zip file can try Big5-hkscs encoding, the common coding in other languages no longer repeat.
The general principle is to use Lsar to test out the correct coding, with Unar decompression.
References:
Http://manpages.ubuntu.com/manpages/pre ... sar.1.html
Http://manpages.ubuntu.com/manpages/pre ... nar.1.html
The solution of garbled problem after extracting files in the compressed package of Ubuntu