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.