How to solve the garbled display of ZIP files in LINUX

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.