Many of my friends will encounter garbled characters in the decompressed ZIP file in linux. Next I will introduce how to solve the problem of garbled characters in the decompressed ZIP file. If you need it, please refer to it.
Solution
Modify the default system encoding to Chinese.
| The Code is as follows: |
Copy code |
Vim/etc/sysconfig/i18n |
Delete the file and add the following content.
| The Code is as follows: |
Copy code |
| LANG = zh_CN.GBK LANGUAGE = "zh_CN: zh: en_US: en" stst_id3_tag_rncoding = GBK LC_CTYLE = zh_CN.GBK LC_ALL = "zh_CN.GBK" |
Decompress 7z to solve the problem: 7z x test.zip
You can also use: jar xvf test.zip
Install 7Z Software
Install 7Z Software
Run the following command on a 32-bit CentOS:
| The Code is as follows: |
Copy code |
Http://packages.sw.be/p7zip/p7zip-9.13-1.el5.rf.i386.rpm wget-c Http://packages.sw.be/p7zip/p7zip-plugins-9.13-1.el5.rf.i386.rpm wget-c Rpm-ivh p7zip-9.13-1.el5.rf.i386.rpm Rpm-ivh p7zip-plugins-9.13-1.el5.rf.i386.rpm |
Run the following 64-bit CentOS command:
| The Code is as follows: |
Copy code |
Http://packages.sw.be/p7zip/p7zip-9.13-1.el5.rf.x86_64.rpm wget-c Http://packages.sw.be/p7zip/p7zip-plugins-9.13-1.el5.rf.x86_64.rpm wget-c Rpm-ivh p7zip-9.13-1.el5.rf.x86_64.rpm Rpm-ivh p7zip-plugins-9.13-1.el5.rf.x86_64.rpm |
Note that the above 32-bit system and 64-bit system are written. You can select a method based on your system to view
1)
| The Code is as follows: |
Copy code |
[Root @ localhost ~] # Cat/proc/version Linux version 2.6.18-194. el5 (mockbuild@builder10.CentOS.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48) #1 SMP Fri Apr 2 14:58:14 EDT 2010 |
2)
| The Code is as follows: |
Copy code |
[Root @ localhost ~] # Uname- Linux localhost. localdomain 2.6.18-194. el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux |
3)
| The Code is as follows: |
Copy code |
[Root @ localhost ~] # Uname-r 2.6.18-194. el5 |