Article Source: https://www.zhihu.com/question/20523036
Today the message received a compressed file, extracted is garbled, from the Internet also found a few methods, the current method is still relatively reliable, as follows:
7z Solution
Need to install P7zip and CONVMV, the commands under Fedora are
‘yum install p7zip convmv‘
The installation command under Ubuntu is
sudo apt-get install p7zip convmv
After installation, you can complete the decompression task with the 7za and CONVMV two commands.
LANG=C 7za x your-zip-file.zipconvmv -f GBK -t utf8 --notest -r .
The first command is used for decompression, and Lang=c represents a us-ascii such as the output file name, if there is no language setting, it will also output garbled, but is the UTF8 format garbled (CONVMV will ignore such garbled).
The second command is to convert the GBK encoded file name to UTF8 encoding, and-R for recursive access to the directory, which translates all the files in the current directory.
Linux zip file Extract garbled solution, ubuntu16.10 Pro test available