-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Expected Behavior
KeePassXC CLI outputs the contents of a database in XML format with correct encoding.
Current Behavior
KeePassXC CLI outputs the contents of a database in XML format with non-Latin symbols being encoded incorrectly.
Possible Solution
Fix it.
Steps to Reproduce
- Create an empty database:
/tmp/Passwords.kdbx. - Insert an entry with any non-Latin text in any field (title / username / password / notes), e. g.
Ελληνική λέξη. - Save and close the database.
- Execute
keepassxc-cli export -f xml /tmp/Passwords.kdbx > /tmp/Passwords.xml. - Enter the password into an empty prompt and press Enter.
- Open the resulting file and see the field contents in incorrect encoding.
Additionally, try to import the database back:
- Open the XML file with a text editor and remove the first line saying
Enter password to unlock /tmp/Passwords.kdbx:. - Execute
keepassxc-cli import /tmp/Passwords.xml /tmp/Passwords-imported.kdbx - Enter a new password and press Enter.
- See the following messages:
Stripping invalid XML 1.0 codepoint 95
Stripping invalid XML 1.0 codepoint 95
Stripping invalid XML 1.0 codepoint 95
Successfully imported database.
Debug Info
KeePassXC - Version 2.5.0
Revision: 1ab8a9f
Qt 5.13.2
Debugging mode is disabled.
Operating system: Manjaro Linux
CPU architecture: x86_64
Kernel: linux 4.19.84-1-MANJARO
Enabled extensions:
- Auto-Type
- Browser Integration
- SSH Agent
- KeeShare (signed and unsigned sharing)
- YubiKey
Cryptographic libraries:
libgcrypt 1.8.5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels