Under linux file decompression to solve the garbage problem in Chinese

 

After the compressed file with a Chinese file name uploaded to the server, use unzip unzip the file name garbled:

Workaround:

       By extracting unzip command line, specify the character set unzip -O CP936 xxx.zip (with GBK, GB18030 also be), you can unzip see a description of the option by man.

Permanent method:

       In an environment variable, specify unzip parameters are always displayed in the specified character set and unzip the file / etc / environment added 2 lines

UNZIP="-O CP936"

ZIPINFO="-O CP936"

 

Guess you like

Origin www.cnblogs.com/qinyl/p/11832337.html