Linux zip file unzipping issues, linuxzip unzipping garbled

Source: Internet
Author: User

Linux zip file unzipping issues, linuxzip unzipping garbled

Due to Encoding Problems, Chinese files in the zip file are unzipped in linux.

If you use archlinux, you can use AUR to install unzip-natspec.

Https://aur.archlinux.org/packages/unzip-natspec/

 

At this time, you can use unzip xxx.zip to decompress the file correctly.

 

The Chinese name is still garbled in the file-roeller archive manager. It is said that the file-roeller uses p7zip preferentially.

 

Solve the problem after p7zip is deleted

 

However, I still want to use the p7zip package. Who knows how to solve this problem?

 

Please refer to the following link for more information: https://git.gnome.org//browse/file-roller/download code.

    /* give priority to 7z, unzip and zip that supports ZIP files better. */    if ((strcmp (mime_type, "application/zip") == 0)        || (strcmp (mime_type, "application/x-cbz") == 0))    {        if (_g_program_is_available ("7z", check_command)) {            return capabilities;        }        if (!_g_program_is_available ("unzip", check_command)) {            capabilities |= FR_ARCHIVE_CAN_READ;        }        if (!_g_program_is_available ("zip", check_command)) {            capabilities |= FR_ARCHIVE_CAN_WRITE;        }        return capabilities;    }

It seems that there is no good way to fix the code.

 

Finally, we found that there is a similar software package p7zip-natspec in AUR.

Https://aur.archlinux.org/packages/p7zip-natspec/

The installation of this package should solve the problem perfectly, because I have used the above method to solve the problem, so I will not try this.

 

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.