The solution to the garbled Code of zip File decompressed by linux
This article shows the specific operation to solve the problem of linux decompression zip file garbled, the code is concise and easy to understand, if you encounter this question in your daily work, I hope you can find a way to solve the problem through this article.
First, decompress and specify the character set by unzip command
Unzip-O CP936 xxx.zip (GBK, GB18030 is also possible)
Online video tutorial recommendation: linux video tutorial
Second, in the environment variable, specify the unzip parameter, always display and extract the file with the specified character set
Add the following 2 lines to / etc/environment:
UNZIP= "- O CP936" ZIPINFO= "- O CP936"
Third, use the jar command to extract the zip package
For example:
Jar xvf file.name
The above is the linux decompression zip file garbled solution, the content is more comprehensive, and I also believe that there are quite a number of tools may be our daily work may see or use. Through this article, I hope you can gain more.