[Switch] The solution to the problem of unzipping garbled characters in zip files under Linux

Original address: https://www.zhihu.com/question/20523036

unzip -O cp936 <zip file>
After Ubuntu 16.04 experiment, this method is feasible.

The following has not been tested.

Note: If there is no -O parameter, you need to patch unzip
according to the installation steps on https://github.com/ikohara/dpkg-unzip-iconv , patch unzip, and then you can use the -O parameter

Others Method:
Install unar first, take Ubuntu as an example:
sudo apt install -y unar
Instructions:
unar <zip file>
This tool will automatically detect the encoding of the file, which can also be specified with -e.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326656222&siteId=291194637