https://bugs.kde.org/show_bug.cgi?id=393901

--- Comment #12 from Elvis Angelaccio <elvis.angelac...@kde.org> ---
I played a bit with the test file (thanks for that!).

If we convert the UTF-16 password provided by the ark password dialog to the
windows-1250 encoding using QTextCodec, the archive is extracted just fine
(since libzip just uses the raw bytes and doesn't care about the encoding). 

The problem is: how do we ask the user which encoding wants to use for the
password? We can't really do it in the password dialog, because ark uses the
general-purpose KPasswordDialog provided by kwidgetsaddons.

The easiest thing could be to add a dropdown menu in the ark settings to
configure which encoding to use for passwords.

There is the additional problem that QTextCodec is gone in Qt6 and the
replacement doesn't yet have feature parity: https://phabricator.kde.org/T14154

But since we need QTextCodec for Kate I don't think would be too bad if we keep
using it in Ark too.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to