Ubuntu Decompression zip file garbled solution method _linux

Source: Internet
Author: User
Tags zip

Objective

This article is about Ubuntu uncompressed zip file garbled solution, a total of 2 ways to solve the problem, the following words do not say more, to see together

First, through the Unzip line command decompression, the specified character set

Unzip-o CP936 Xxx.zip (with GBK, GB18030 can also)

Interestingly, there is no explanation for this option in Unzip's manual, unzip--help a simple one-line description of this parameter.

In the environment variable, specify the unzip parameter, always display the decompression file in the specified character set

Add 2 lines to the/etc/environment

unzip= "-O CP936"
zipinfo= "-O CP936"

The GNOME Desktop Archive Manager (File-roller) can use unzip to extract Chinese correctly, but File-roller itself does not set the encoding to be passed to unzip.

Summary

I first used the second method, but found that I did not install File-roller, so I used the first method to specify the character set, and then it was done, but still feel this CP936 .... Don't remember, I don't know if there's a better way.

Summarize

The above is the entire content of this article, I hope the content of this article for everyone's study or work can bring certain help, if you have questions you can message exchange. Thank you for your support in the cloud-dwelling community.

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.