Ubuntu solve the garbage problem in Chinese-extracting zip

 

In my ubuntu14.04, the findings show that the Chinese are basically normal, only in extracting windows pass over the zip file, appear garbled. So, I used another method to solve the Chinese garbled.

Tools used lsar The Unarchiver is provided by the project / unar tool.

 

Installation (12.04 and above):

Code:

sudo apt-get install unar

 

12.04 The following installation or want to compile a friend, please refer to:

viewtopic.php?f=35&t=353426

 

use:

Suppose you want to extract the ZIP package is foo.zip

Code:

lsar foo.zip # List all files

 

If the file name has been listed correctly

Code:

unar foo.zip # unzip all files

 

If the file name is not listed correctly

Code:

lsar -e GB18030 foo.zip # specify the encoding GB18030 list all files

unar -e GB18030 foo.zip # specify GB18030 extract all files

 

Note: ZIP file GB18030 encoded file name generally comes from the Simplified Chinese version of Windows, ZIP files for Traditional Chinese version of Windows generated can try BIG5-HKSCS coding, coding in other languages ​​common to not repeat them. General principle is that after a lsar test the correct coding, with unar decompression.

 

Guess you like

Origin www.cnblogs.com/onelikeone/p/12002931.html