Get the App
SLTechnology News&Howtos  ›  Servers  › 

The solution to the garbled Code of zip File decompressed by linux

Shulou Source: shulou.com Published: 2022-06-03 06:26:34 10月03日 Update

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.

Tags: Files garbled commands characters character sets tutorials daily work questions articles videos work methods concise concise code content methods parameters variables online video Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Microsoft MariaDB Docker Shulou Information