Unzip it to solve the problem of Chinese garbled

Use unzip XXX.zip way of extracting when there will be Chinese garbled

Many people recommend the following ways:

In windows execute command to display the character set numbers generally 936: 
# chcp 
// plus decompression -O cp936, xxx for the digital display in front of 
# the unzip -O CPxxx

But unzip no longer supported

 

Effective way to pro-test:

1. Unzip the file 
# 7za xxx.zip
2. Execute the following command:
# convmv -r -f -t utf8 ISO88591 * --notest --nosmart && convmv GBK -r -f -t utf8 * --notest --nosmart

convmv You can not perform need to install:
# yum install p7zip convmv

7z Installation Reference: https: //www.cnblogs.com/crazytata/p/10235812.html

Related reference link: https: //www.cnblogs.com/Rapheal/p/3664806.html

 

Guess you like

Origin www.cnblogs.com/ngrzr/p/11319342.html