[Solved] Software recommendation: 7-zip with CJK support

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

[Solved] Software recommendation: 7-zip with CJK support

Post by pvc »

Does anybody know about any 7-zip extractor capable of dealing with CJK character set for Linux? Preferably without adding extra locale. p7zip can theoretically do that but needs to be recompiled with extra configuration flags, which I don't want to deal with. Maybe there is some easier solution.
Last edited by pvc on Thu May 13, 2021 11:33 am, edited 1 time in total.
User avatar
bzt
Member
Member
Posts: 1584
Joined: Thu Oct 13, 2016 4:55 pm
Contact:

Re: Software recommendation: 7-zip decompressor with CJK sup

Post by bzt »

Nope. 7-zip SDK is Windows-only, it's port to other OS is mostly garbage (no wonder most of them are rewrites, and it took YEARS to compile a cli 7-zip under Linux). Also it's compression, lzma2 is badly implemented, not transmission-safe and inefficient (that page is about xz, however 7z uses exactly the same lzma2 encoding). If I were you, I'd choose another archive format instead of 7z in the first place.

If the archive is from a 3rd party and you cannot download the material in non 7z form, then give a try to command line 7zip under Linux, but it is known to be buggy (see sourceforge forums and tickets, there are more than 500 open and unresolved issues).

Not sure, but maybe XZ Utils can extract 7z files, worth a try.

Cheers,
bzt
Octocontrabass
Member
Member
Posts: 5512
Joined: Mon Mar 25, 2013 7:01 pm

Re: Software recommendation: 7-zip decompressor with CJK sup

Post by Octocontrabass »

The 7z format always uses UTF-16 for file names, so anything not based on the original 7-zip Windows code should at least handle characters in the BMP.

A quick search turns up py7zr. Does that one work for you?
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

Re: Software recommendation: 7-zip decompressor with CJK sup

Post by pvc »

@Octocontrabass
Thanks. py7zr works like a charm. p7zip that comes from Arch repos says `locale=C,Utf16=off` in its help message, so that was probably the problem.
Post Reply