Solve the problem of Chinese garbled characters decompressed by zip in ubuntu

Source: Internet
Author: User
Solve the problem of Chinese garbled characters for zip decompression in ubuntu. in ubuntu12.10, I found that Chinese characters are displayed normally. garbled characters only occur when I decompress the windows zip file. So I used another method to solve the Chinese garbled text problem. The tool used is TheUnarchive... solve the problem of Chinese garbled characters for zip decompression in ubuntu. in ubuntu12.10, I found that Chinese characters are displayed normally. garbled characters only occur when I decompress the windows zip file. So I used another method to solve the Chinese garbled text problem. The tool used is The lsar/unar tool provided by The Unarchiver project. Install (12.04 or above): Code: sudo apt-get install unar 12.04 or below or anyone who wants to compile and install it can refer to viewtopic. php? F = 35 & t = 353426 usage: the zip package is decompressed with a hypothetical option: foo.zip code: lsar foo.zip # List all files. if the listed file name is correct, run the following code: unar foo.zip # decompress all files. if the listed file name is incorrect, run the following code: lsar-e GB18030 foo.zip # specify to use GB18030 encoding to list all files unar-e GB18030 foo.zip # specify to decompress all files using GB18030. note: The ZIP file of GB18030 encoding file names is generally generated by Windows in the simplified Chinese version, for the traditional Chinese version of Windows generated ZIP files can try BIG5-HKSCS encoding, common encoding for other languages are not described in detail. The general principle is to use lsar to test the correct encoding and decompress it with unar.
Related Article

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.