[SOLVED] Characters being changed when pasted from Keepass
Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks. That seems to rule out it being one of your Firefox extensions that's causing the problems.
If you want, I can try and replicate the problem myself in a VM. All you need to do is confirm the following: your distro/version/desktop environment, the version of KeePass2 that you're running, the version of Firefox that you're running, and a site where you consistently have at least 1 out of 10 errors when using the combination. I'm sure this info is scattered around in this thread somewhere but it would be easier for me if it were gathered here.
As an alternative, let me know what you can't get working in KeyPassX - I use it and haven't had any issues with it so far.
Thanks for the offer, here a the details:
I’m running Mint 18.1 Cinnamon 64-bit
Version of KeePass2 V2.34 (although yesterday it upgraded to V2.35 which hasn’t changed the issue in hand, whatsoever).
I have Firefox V50.1.0
A site where it consistently fails: Gmail login - https://accounts.google.com/ServiceL...il/#identifier
What I couldn’t I get working in KeePassX? I just didn’t like the functionality of it.
You seem to have to click on the icons at the top to copy the login and the copy password, rather than drag & drop. Also it doesn’t display the Notes for each highlighted entry in the bottom view pane automatically, you need to click to display them each time, then cancel afterwards.
I’m running Mint 18.1 Cinnamon 64-bit
Version of KeePass2 V2.34 (although yesterday it upgraded to V2.35 which hasn’t changed the issue in hand, whatsoever).
I have Firefox V50.1.0
A site where it consistently fails: Gmail login - https://accounts.google.com/ServiceL...il/#identifier
What I couldn’t I get working in KeePassX? I just didn’t like the functionality of it.
You seem to have to click on the icons at the top to copy the login and the copy password, rather than drag & drop. Also it doesn’t display the Notes for each highlighted entry in the bottom view pane automatically, you need to click to display them each time, then cancel afterwards.
Thanks. I've now set up the VM and installed the required software. Which method are you using to transfer the KeePass2 login details onto the web page?
And is the character change noticeable on the username or the password, or both?
Last edited by hydrurga; 01-15-2017 at 10:48 AM.
Reason: More info.
Thanks. I've now set up the VM and installed the required software. Which method are you using to transfer the KeePass2 login details onto the web page?
And is the character change noticeable on the username or the password, or both?
Thanks very much for your help with this.
It’s the drag and drop method that I’ve consistently used.
The character change is clearly noticeable in the login field, but sometimes happens in the password field too. I know that, because if the login is correct, but it fails to be authenticated. Btw, all my logins are in English.
You can see a login example attached that I've just done now.
It’s the drag and drop method that I’ve consistently used.
The character change is clearly noticeable in the login field, but sometimes happens in the password field too. I know that, because if the login is correct, but it fails to be authenticated. Btw, all my logins are in English.
You can see a login example attached that I've just done now.
Thanks. It seems to work ok for me and I know from another thread that we both have the same locale, so something else is obviously awry.
Can you replicate the problem with cut-paste or have you only experienced it with drag-drop?
Have you changed any of the KeePass2 options from the defaults after installation?
Have you tried putting those Chinese characters into Google translate to see what they come out as? Does the same name in English always produce the same Chinese characters?
Last edited by hydrurga; 01-15-2017 at 04:28 PM.
Reason: Another question.
Thanks. It seems to work ok for me and I know from another thread that we both have the same locale, so something else is obviously awry.
Can you replicate the problem with cut-paste or have you only experienced it with drag-drop?
Have you changed any of the KeePass2 options from the defaults after installation?
Have you tried putting those Chinese characters into Google translate to see what they come out as? Does the same name in English always produce the same Chinese characters?
Sorry for my slow reply.
I was asked earlier if I was using VM ware (post #39), but I would have no idea if that could have some effect on the situation?
I only dual-boot between Windows 7 and Mint., no VM ware (whatever it does?)
Cut & paste against drag & drop. Never tried this test before, as I’ve always used drag & drop.
After twenty attempts using “copy user name” in KeePass2, then Ctrl V to paste, it worked successfully every time.
This might be irrelevant, but I see I can’t use right-click “paste” into the login field, it has to be Ctrl V, if that means anything?
The only thing I changed in KeePass2 was to obscure the login id list in the view pane with asterisks (although I’ve got the same in my Windows version without incident, if that’s relevant), but it still produced Chinese characters before I did that anyway.
After your question if KeePass2 consistently producing the same results in Chinese for a given login - I’ve now tried that.
I can see the Chinese characters are the same each time per email address. I have googled them into English, but although it works, the English resulting translation is just a jumble of words, nothing else.
I’ve experimented with four different email addresses on this. If it has the @ in the address, google translates it into more Chinese when the result should be English.
If logging into Gmail, when only the user name (not the complete email address) is required, google will show the translation as English.
I am struggling to understand why hydrurga, who has the same setup, is not having the same problem as you.
Clutching at straws time:
Is your router using the latest firmware?
If not, then update it and then temporarily use an ethernet cable to connect from your laptop to the router.
Do you still get Chinese characters at login?
(The answer is probably yes).
As I've just this minute posted a reply to hydrurga, you can see he's using VM ware, but I'm not. I would have absolutely no idea if this might affect anything though?
Thanks for the straws you're clutching at, and your continued interest.
Your point about about internet connection & firmware. I think this surely must be a red-herring, as I dual-boot the same machine between Windows 7 & Mint, using exactly the same connection/router, etc,. In Win 7 there's no KeePass2 issue,
So yes, still Chinese characters when logging in to websites using drag & drop from KeePass2, but see my reply details to hydrurga about using copy & paste instead.
As I've just this minute posted a reply to hydrurga, you can see he's using VM ware, but I'm not. I would have absolutely no idea if this might affect anything though?
Thanks for the straws you're clutching at, and your continued interest.
Your point about about internet connection & firmware. I think this surely must be a red-herring, as I dual-boot the same machine between Windows 7 & Mint, using exactly the same connection/router, etc,. In Win 7 there's no KeePass2 issue,
So yes, still Chinese characters when logging in to websites using drag & drop from KeePass2, but see my reply details to hydrurga about using copy & paste instead.
For info, I'm not actually using VMWare, I'm using Oracle's VirtualBox. Both allow you to create virtual machines (VMs) in which you can install an operating system as if it were installed directly in a partition on your hard disk. Being virtual, however, means that I can muck about it to my heart's content without worrying about it affecting my actual Mint 18.1 installation, and also run it while running my main system at the same time (which makes life easier). The fact that an operating system is installed in a VM *may* affect some of its behaviour, but in this case I doubt it.
There have been reports in the past on dragging and dropping causing Chinese characters in Firefox (search on the web for "firefox drag drop chinese") but these don't seem to be directly related to your problem, although the general principle might be.
What you could do from here is reinstall Firefox completely, including deleting all your settings (although we will save a backup copy of these) and see if that remedies the situation. If you're up for that, let me know. Alternatively, you could use an AppImage version of Firefox, which amounts to using a "portable" clean version of the program, but I haven't tried that myself yet (although I will be doing so shortly).
I was asked earlier if I was using VM ware (post #39), but I would have no idea if that could have some effect on the situation?
I only dual-boot between Windows 7 and Mint., no VM ware (whatever it does?)
Cut & paste against drag & drop. Never tried this test before, as I’ve always used drag & drop.
After twenty attempts using “copy user name” in KeePass2, then Ctrl V to paste, it worked successfully every time.
This might be irrelevant, but I see I can’t use right-click “paste” into the login field, it has to be Ctrl V, if that means anything?
The only thing I changed in KeePass2 was to obscure the login id list in the view pane with asterisks (although I’ve got the same in my Windows version without incident, if that’s relevant), but it still produced Chinese characters before I did that anyway.
After your question if KeePass2 consistently producing the same results in Chinese for a given login - I’ve now tried that.
I can see the Chinese characters are the same each time per email address. I have googled them into English, but although it works, the English resulting translation is just a jumble of words, nothing else.
I’ve experimented with four different email addresses on this. If it has the @ in the address, google translates it into more Chinese when the result should be English.
If logging into Gmail, when only the user name (not the complete email address) is required, google will show the translation as English.
Ok, it now looks as if it is a problem affecting only drag-and-drop, and it is some bug that produces a direct transformation of the English characters into Chinese (probably through 16-bit characters being treated as 8-bit or something along those lines). That's good as it narrows it down.
So are you saying that you only encounter the problem when the text includes a "@"? That is strange indeed.
Ok, it now looks as if it is a problem affecting only drag-and-drop, and it is some bug that produces a direct transformation of the English characters into Chinese (probably through 16-bit characters being treated as 8-bit or something along those lines). That's good as it narrows it down.
So are you saying that you only encounter the problem when the text includes a "@"? That is strange indeed.
Sorry, it looks like I didn't explain that clearly enough. No, the problem occurs with all logins, irrespective of what they contain.
I was referring to the "@" symbol when pasting into google translate only: If the Chinese characters originate from just a user name, such as "john.smith", then google translates the erroneous Chinese into English as say (this was one result), "Decoction soup".
However, if there is a full email address "john.smith@gmail.com", then that Chinese when pasted into google translate, gets translated into even more, but different Chinese, e.g. 睥湡歀㝫ㄱ挮浯 when translated to "English" comes out as 湡 歀 㝫 㝫 挮 挮 挮.
An even more confusing sidetrack!
Yes, I hadn't tried copy & paste until your suggestion. I'll do some more testing and see if it is truly consistent. No idea though why this issue is only happening with Mint, not windows.
Don't forget though, I did drag & drop from Keepass2 into Libre Office Writer: successful fifty times continuously, no errors.
To me it's seems like a Firefox issue?
Sorry, it looks like I didn't explain that clearly enough. No, the problem occurs with all logins, irrespective of what they contain.
I was referring to the "@" symbol when pasting into google translate only: If the Chinese characters originate from just a user name, such as "john.smith", then google translates the erroneous Chinese into English as say (this was one result), "Decoction soup".
However, if there is a full email address "john.smith@gmail.com", then that Chinese when pasted into google translate, gets translated into even more, but different Chinese, e.g. 睥湡歀㝫ㄱ挮浯 when translated to "English" comes out as 湡 歀 㝫 㝫 挮 挮 挮.
An even more confusing sidetrack!
Yes, I hadn't tried copy & paste until your suggestion. I'll do some more testing and see if it is truly consistent. No idea though why this issue is only happening with Mint, not windows.
Don't forget though, I did drag & drop from Keepass2 into Libre Office Writer: successful fifty times continuously, no errors.
To me it's seems like a Firefox issue?
Yes, it looks almost certainly like a Firefox issue. The question is, however, why do I not see the same thing as you're seeing with what appears to be the same setup?
What you can try is launching Firefox with a new clean profile.
You do this by running firefox -P at the command line.
After a short while, you should see a profile dialogue box appear. Click on Create Profile. Then click Next, give the new profile the name "Testing", and click Finish. Then click Start Firefox.
Once Firefox has been launched, test KeePass2 again with it.
Yes, it looks almost certainly like a Firefox issue. The question is, however, why do I not see the same thing as you're seeing with what appears to be the same setup?
What you can try is launching Firefox with a new clean profile.
You do this by running firefox -P at the command line.
After a short while, you should see a profile dialogue box appear. Click on Create Profile. Then click Next, give the new profile the name "Testing", and click Finish. Then click Start Firefox.
Once Firefox has been launched, test KeePass2 again with it.
That seemed liked a good idea - thanks for that.
Followed your instructions, FF did indeed start up again. I could see there were only the Mint entries in my bookmarks, so I new it wasn't the original profile.
Tried drag and drop. Sadly it failed on attempt #15, and pasted the now infamous Chinese characters into the only logon I tested using the new profile - gmail.
This might seem obvious to yourself, but I take it launching a new profile will automatically clear all previous settings, like the cache, for example?
Thanks again for the suggestion.
Edit: Although I edited the profile OK, I have just seem this as I was about to close the terminal window. Don't know at all if it is relevant or not?
Code:
firefox -P
1484637955283 addons.update-checker WARN Update manifest for firefox@getpocket.com did not contain an updates property
1484637955324 addons.update-checker WARN Update manifest for aushelper@mozilla.org did not contain an updates property
1484637955342 addons.update-checker WARN Update manifest for {972ce4c6-7e08-4474-a285-3208198ce6fd} did not contain an updates property
1484637955377 addons.update-checker WARN Update manifest for e10srollout@mozilla.org did not contain an updates property
1484637955392 addons.update-checker WARN Update manifest for webcompat@mozilla.org did not contain an updates property
1484637956103 addons.xpi WARN Add-on firefox-hotfix@mozilla.org is not compatible with application version.
1484637956454 addons.xpi WARN Add-on firefox-hotfix@mozilla.org is not compatible with application version.
1484637957378 addons.xpi ERROR Attempted to load bootstrap scope from missing directory /home/watt/.mozilla/firefox/jbw4lpuv.Testing/extensions/firefox-hotfix@mozilla.org.xpi
1484637957379 addons.xpi WARN Add-on firefox-hotfix@mozilla.org is missing bootstrap method shutdown
1484637957385 addons.manager WARN Exception calling callback: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.isDirectory]" nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)" location: "JS frame :: resource://gre/modules/addons/XPIProvider.jsm :: getURIForResourceInFile :: line 1537" data: no] Stack trace: getURIForResourceInFile()@resource://gre/modules/addons/XPIProvider.jsm:1537 < this.XPIProvider.callBootstrapMethod()@resource://gre/modules/addons/XPIProvider.jsm:4811 < this.XPIProvider.uninstallAddon()@resource://gre/modules/addons/XPIProvider.jsm:5089 < AddonWrapper.prototype.uninstall()@resource://gre/modules/addons/XPIProvider.jsm:7504 < uninstallHotfix/<()@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///home/watt/.mozilla/firefox/jbw4lpuv.Testing/extensions/firefox-hotfix@mozilla.org.xpi!/bootstrap.js:93 < safeCall()@resource://gre/modules/AddonManager.jsm:188 < makeSafe/<()@resource://gre/modules/AddonManager.jsm:204 < Handler.prototype.process()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:937 < this.PromiseWalker.walkerLoop()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:816 < this.PromiseWalker.scheduleWalkerLoop/<()@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:750
Vector smash protection is enabled.
Last edited by paxolin; 01-17-2017 at 02:08 AM.
Reason: Added termail output
Followed your instructions, FF did indeed start up again. I could see there were only the Mint entries in my bookmarks, so I new it wasn't the original profile.
Tried drag and drop. Sadly it failed on attempt #15, and pasted the now infamous Chinese characters into the only logon I tested using the new profile - gmail.
This might seem obvious to yourself, but I take it launching a new profile will automatically clear all previous settings, like the cache, for example?
Thanks again for the suggestion.
Drat. Every time I look at the thread listings, I hope to see the [SOLVED] at the start of this one. :-) We're not giving up yet though!
Now, it's a different ball game however as I've just managed to replicate the problem and have experienced Chinese characters on pasting "mickey@gmail.com" into the Google username box.
Will carry on testing to see if I can prevent the problem...
Drat. Every time I look at the thread listings, I hope to see the [SOLVED] at the start of this one. :-) We're not giving up yet though!
Now, it's a different ball game however as I've just managed to replicate the problem and have experienced Chinese characters on pasting "mickey@gmail.com" into the Google username box.
Will carry on testing to see if I can prevent the problem...
Whoaaaaaaa!
Don't take this the wrong way, but... THANK GOODNESS FOR THAT!! There is a god after all.
So now I know I'm not quite as crazy as everyone must think I am. Ha ha!
I think the word "success" is probably the wrong one to use here, but it is certainly a relief for me.
Whoaaaaaaa!
Don't take this the wrong way, but... THANK GOODNESS FOR THAT!! There is a god after all.
So now I know I'm not quite as crazy as everyone must think I am. Ha ha!
I think the word "success" is probably the wrong one to use here, but it is certainly a relief for me.
I know, I felt the same way when it first happened. :-)
The annoying thing is, however, that I changed one of the options in KeePass2 (I unchecked Interface->Force using system font) and got a 1/10 strike rate after that. I then changed it back to what it had been before and haven't been able to get the Chinese characters since!
I must say however that sometimes Firefox just downright refuses to drop text onto that username box altogether, in which case I have to restart Firefox. I've also had a situation several times where, after using KeePass2, I'm unable to click in Firefox at all. I've never experienced that before, and it may be particular to my using a VM, but it doesn't make me feel entirely comfortable about the KeePass2/Firefox combination.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.