Bug 423895 - Allow specifying filename and/or password encodings via unar
Summary: Allow specifying filename and/or password encodings via unar
Status: REPORTED
Alias: None
Product: ark
Classification: Applications
Component: plugins (other bugs)
Version First Reported In: unspecified
Platform: unspecified Unspecified
: NOR normal
Target Milestone: ---
Assignee: Ragnar Thomsen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-05 09:19 UTC by 2wxsy58236r3
Modified: 2022-12-04 12:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 2wxsy58236r3 2020-07-05 09:19:59 UTC
This depends on Bug 423894.

ZIP files created on Windows may have encoding problems. As a solution, we can use unar's -e and -E parameters to specify the correct encodings. It would be nice if we can choose the encoding via Ark's GUI, just like you can choose the text encoding in Firefox.

Bug 393901, Bug 324978 and Bug 378904 will be benefited by this feature.
Comment 1 Justin Zobel 2020-11-05 06:59:51 UTC
Are there any particular programs on Windows that create known issues with extracting using Ark? This way we can test them.
Comment 2 2wxsy58236r3 2020-11-06 03:58:06 UTC
Windows' built-in "compress to ZIP" feature in File Explorer has this issue, and can be reproduced with a non-English Windows installation and files with non-English names.

For example, in Windows XP (Japanese):
1. Create a file with Japanese characters, e.g. "あいうえお.txt"
2. Right click the file / folder and "Send to" > "Compressed (zipped) folder" (Japanese: "送る" > "圧縮(zip 形式)フォルダー")
3. The ZIP file created will use the Shift_JIS encoding.
4. Thus, when opening the created file with 7z or unzip, the filename cannot be properly interpreted.
Comment 3 Elvis Angelaccio 2022-12-04 12:30:34 UTC
See https://bugs.kde.org/show_bug.cgi?id=393901#c12

With that solution we would be able to handle non-unicode password with the libzip plugin itself.