LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 01-09-2017, 06:40 AM   #1
paxolin
Member
 
Registered: Jan 2017
Location: Thailand
Distribution: Mint 20.3 Cinnamon 64-bit 12Gb RAM (Linux newbie, Dummies level)
Posts: 412

Rep: Reputation: Disabled
Characters being changed when pasted from Keepass


I have installed Keepass2, (Ubuntu v2.34) as I use this under Windows. Unfortunately it’s not working correctly for me in Mint.

It has the same layout as the Windows version, and I’m using the same database, but when trying to paste a login into a site - either by dragging & dropping it, (as I can do in the Windows version every time) or copying & pasting – all the logins are in English, but in Mint, 20-25% of the time they get transposed into Chinese characters in the login field (sometimes the password too, I know that if the login's correct, but it's rejected).

I've noticed now that a couple of times it has pasted the login ID correctly when I use the drag and drop method, other times it's still pasted as Chinese again.

A few times I’ve tried some logins twice (drag & drop/c&p), without changing the screen, or anything - first time was Chinese, then second time, sometimes third time it’s English.

I have Mint Cinnamon 18.1, using Firedox 50.1.0 My locale, language, region is set to EN-GB, although I’m in Thailand (but definitely not China!)
It was suggested checking Firefox - the Text Encoding to ensure sure Auto-Detect was off, which it was anyway.

Example of websites causing this issue for me: mail.google.com 1and1.com facebook.com reddit.com to name just a few, although I somehow doubt it’s anything to do with the site – they all work fine in KeePass2 under Windows.
outlook.com – this is much more difficult to paste anything into for some reason – this is the only site I’ve had problems with KeePass2 in Windows too Maybe it’s just MS website setup?

It was suggested to me to start a new thread about this specifically. If you want to read the original post, it’s here: http://www.linuxquestions.org/questi...nt-4175596687/
 
Old 01-09-2017, 07:55 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
probably LC_LOCALE is not set properly.
I don't know what is ubuntu v2.34
 
Old 01-09-2017, 08:49 AM   #3
paxolin
Member
 
Registered: Jan 2017
Location: Thailand
Distribution: Mint 20.3 Cinnamon 64-bit 12Gb RAM (Linux newbie, Dummies level)
Posts: 412

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
probably LC_LOCALE is not set properly.
I don't know what is ubuntu v2.34
I'm sorry, I didn't write that clearly: What I installed is KeePass v2.34 for Ubuntu.

I'm wondering if the LC_LOCALE ia the one I've had help with editing to set my locale to appear as UK?
I typed #locale# in terminal to get this, if that's the one?
I know how to paste that now. It's pasted below, if that's any help.
#LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=en_GB.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=en_GB.UTF-8
LC_NAME=en_GB.UTF-8
LC_ADDRESS=en_GB.UTF-8
LC_TELEPHONE=en_GB.UTF-8
LC_MEASUREMENT=en_GB.UTF-8
LC_IDENTIFICATION=en_GB.UTF-8
LC_ALL=
#
 
Old 01-09-2017, 11:33 AM   #4
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,987
Blog Entries: 33

Rep: Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470Reputation: 1470
paxolin,

The second answer on here has plenty of detail:
http://unix.stackexchange.com/questi...es-lc-all-c-do
 
Old 01-09-2017, 06:52 PM   #5
paxolin
Member
 
Registered: Jan 2017
Location: Thailand
Distribution: Mint 20.3 Cinnamon 64-bit 12Gb RAM (Linux newbie, Dummies level)
Posts: 412

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
paxolin,

The second answer on here has plenty of detail:
http://unix.stackexchange.com/questi...es-lc-all-c-do
Thanks so much for your reply.
When I had the editing of the locale settings explained to me step-by-step last week, I had no idea what I was doing, only following the instructions.

I clicked on the link, and I'm sorry to say that my eyes just glazed over as I tried to read the text. I really have very little understanding of any this.
What does it mean in plain English - will it resolve my problem, and if so, what is it I need to do?
 
Old 01-10-2017, 12:02 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
if you think your problem is solved please mark the thread solved.
Also if you want to say thanks just click on yes.
 
Old 01-10-2017, 12:19 AM   #7
paxolin
Member
 
Registered: Jan 2017
Location: Thailand
Distribution: Mint 20.3 Cinnamon 64-bit 12Gb RAM (Linux newbie, Dummies level)
Posts: 412

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
if you think your problem is solved please mark the thread solved.
Also if you want to say thanks just click on yes.
Err, no the problem isn't solved for me. That was why I wrote that I didn't understand what any of it meant.
 
Old 01-10-2017, 12:29 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
Sorry, looks like I misunderstood.
So you need to set LC_* variables properly, otherwise you will get the result what you described (or something similar). Probably it was changed somehow or it was not specified at all.
From the other hand on gui there is a system settings dialog, where you can select language support and also regions and language. Probably you can check them too.
(LC_LOCALE itself does not exist, I wanted to write LC_* variables, the locale, just mixed a bit)
 
Old 01-10-2017, 12:44 AM   #9
paxolin
Member
 
Registered: Jan 2017
Location: Thailand
Distribution: Mint 20.3 Cinnamon 64-bit 12Gb RAM (Linux newbie, Dummies level)
Posts: 412

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Sorry, looks like I misunderstood.
So you need to set LC_* variables properly, otherwise you will get the result what you described (or something similar). Probably it was changed somehow or it was not specified at all.
From the other hand on gui there is a system settings dialog, where you can select language support and also regions and language. Probably you can check them too.
(LC_LOCALE itself does not exist, I wanted to write LC_* variables, the locale, just mixed a bit)
Ah, now I think I understand that! Is the attached what you're referring to, I wonder?
If so, you can see (from what I can work out) that it's all set to English UK already. Or have I got that wrong?
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-01-10 13-33-46.png
Views:	25
Size:	57.2 KB
ID:	23931  
 
Old 01-10-2017, 12:57 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
From here I don't really know, but I can see 22 languages are installed, probably you need to remove the unwanted ones. Probably the system has some built-in "intelligence" and tried to recognise the language you use auto-magically, just cannot identify properly.
 
Old 01-10-2017, 01:37 AM   #11
paxolin
Member
 
Registered: Jan 2017
Location: Thailand
Distribution: Mint 20.3 Cinnamon 64-bit 12Gb RAM (Linux newbie, Dummies level)
Posts: 412

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
From here I don't really know, but I can see 22 languages are installed, probably you need to remove the unwanted ones. Probably the system has some built-in "intelligence" and tried to recognise the language you use auto-magically, just cannot identify properly.
Thanks for the suggestion, I appreciate it.
I've been through and removed all surplus languages (although I didn't see any character-based ones there).
I have left only: EN-US, EN-GB, Thai, Laos. The last two are alphabet-based anyway.

I rebooted and sadly, the first login I tried with drag & drop placed Chinese in the login field again. After I deleted the Chinese from the google login field (but deleting that only, changing nothing else at all), I tried again - this time it was in English.
Obviously when I get to the password field I'll never know if it's correct or not until the login attempt fails.

I suppose looking on the positive side, we've now removed the additional language settings as causing the problem. I still haven't got any further with the #locale# suggestion, but that's only because I have no idea what to do there.

I've attached a screenshot for you to see the problemn.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-01-10 14-22-28.png
Views:	19
Size:	11.5 KB
ID:	23934  

Last edited by paxolin; 01-10-2017 at 01:38 AM.
 
Old 01-10-2017, 01:56 AM   #12
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
I do not know where did you set locale (LC_* variables), probably too late.
Also you may need to restart gui (or reboot) to forget those language completely.
 
Old 01-10-2017, 02:11 AM   #13
paxolin
Member
 
Registered: Jan 2017
Location: Thailand
Distribution: Mint 20.3 Cinnamon 64-bit 12Gb RAM (Linux newbie, Dummies level)
Posts: 412

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I do not know where did you set locale (LC_* variables), probably too late.
Also you may need to restart gui (or reboot) to forget those language completely.
If you look, I did say I rebooted Mint already.
Below I have pasted the exact info I followed to change #locale# - that was regarding the date format though:


It came from my query here: http://www.linuxquestions.org/questi...820/page2.html

[to edit the en_GB file to change that date format: the separator from “/” to “-”]

Great. Now for some editing. The default text editor in Mint 18 is xed so we will use that. Again, because it is a system file we need to edit the file as if we were a root user, not an ordinary user. Because we are going to use a GUI program, namely xed, rather than a command on the command line, we use gksudo not sudo (there are some subtle differences between gksudo and sudo which you will find explained elsewhere on the web).

gksudo xed en_GB

You will notice a red bar at the top of the editor that says "Elevated Privileges". This is there to remind you that you are editing as root, not as an ordinary user.

Don't worry that the contents of the file look a bit gobbledy-gook. Those <U0073> etc. are just a way of expressing unicode characters (see here for a list of some of them - http://www.utf8-chartable.de/).

Scroll down until you see the LC_TIME section. Then scroll down until you see the subsection called d_fmt. This is the date format, which is currently set to (translating the unicode characters) %d/%m/%y.

The forward slash is represented as <U002F>. You should see two of them on that line. The hyphen is represented as <U002D>. So, you need to change the F to a D on both occasions.

After you have finished, save the file and exit xed.
 
Old 01-10-2017, 03:18 AM   #14
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
no, you misunderstood.
That is the generation of locale files, this is not releted to the usage of them (although only generated locales can be used).
You need to set those LC_* variables to be able to use the generated locales. And my question was were these LC_* variables set.
Probably it is too late. I mean that should happen before the login dialog appeared.
 
Old 01-10-2017, 03:36 AM   #15
paxolin
Member
 
Registered: Jan 2017
Location: Thailand
Distribution: Mint 20.3 Cinnamon 64-bit 12Gb RAM (Linux newbie, Dummies level)
Posts: 412

Original Poster
Rep: Reputation: Disabled
OK, you've completely lost me! I'm afraid I have no understanding of what it is you're saying there. It's way beyond me.
If there is some way to talk me through it, would that be an option at all? Otherwise I've got no idea, sadly.
Thanks for your persistence with me on this though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
keepass-issues: added entries to keepass - but login to this pages not possible ! - Why is this so? sayhello_to_the_world General 12 10-31-2016 01:20 PM
KeePass moisespedro Slackware 26 03-18-2014 05:46 PM
What changed from PL 4.31 to PL 5.1* that can't use special characters like accents? Benny7440 Puppy 3 04-17-2011 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration