Keyboard characters become "messed up"
25 views (last 30 days)
Show older comments
Hi,
My MATLAB works perfectly fine, but after some time some keyboard characters become "messed up". For example:
/ results in é,
" results in `,
< results in ',
? results in É
The only way to fix it seems to be to restart MATLAB.
Did anyone else encounter this problem? I'm running MATLAB R2011a on Windows 7.
I would greatly appreciate any advice.
Thank you, K
2 Comments
Ramon Casero
on 24 Sep 2016
Edited: Ramon Casero
on 24 Sep 2016
I'm running Matlab 2014a on Ubuntu linux trusty over a NoMachine NX remote session, and after some time, typing behaves erratically. For example, typing "asd" will produce "as", and then the cursor will select a few characters in the editor, instead of producing a "d". Typing another character will replace the spuriously selected ones.
Matlab needs to be restarted to correct the problem. Searching around, somebody suggested creating a java.opts file with the line
-Dsun.java2d.pmoffscreen=false
but this doesn't fix anything in this particular case.
Ana Fernández
on 15 Mar 2021
Similar problem here, but for me it only happens in the Editor (everything works fine in the Command window) and with the character ~
Answers (5)
Kwaku Benjamin
on 31 Aug 2011
Hey K,
I had the same problem, whenever i started my Matlab and entered keyboard characters, i had completely different stuff in the command window. Here is how it worked and boy is took me 6months to figure out(hahaha, how dumb i am).
I bought my laptop in China, so the regional settings where set to China. So 1. go to control panel 2. regional settings(US) 3. change the region and also the language setting(US English). 4. Save the changes.
Remember, even though I could write and type in English before i changed the settings, AFTER changing it it still worked and WORKED IN MATLAB. Good luck
Alessandro Mogavero
on 10 Jan 2019
I had the same problem. Though other software worked fine, so it was not an issue with system settings. I solved pressing several times (not sure how many). Shift + Alt + AltGr
1 Comment
Alexander Sanchez Martinez
on 30 Mar 2020
Thanks, I had this problem, and your comment helped me to solve it!!
Walter Roberson
on 22 Aug 2011
Do you happen to be using Simulink? I'm wondering if you are encountering an slcharacterencoding(), possibly in some model you are running?
Fangjun Jiang
on 23 Aug 2011
Did it happen in MATLAB Command Window or Editor? Before and after the problem happen, could you check menu File->Preferences->Keyboard, Fonts to see if there is any obvious change?
Probably it's better to call TMW tech support up and run a WebEx session to show them.
7 Comments
Fangjun Jiang
on 23 Aug 2011
@Jan, your keyboard latency problem is coming back!:)
I had the same problem since last night. It seems to be the problem of the Answers website.
Jan
on 23 Aug 2011
@Fangjun: I've tried to create a thread with the subject "Broken web interface of Answers" etc, but without success. I got just the error message... It would be helpful, if this problem is announced anywhere.
Catherine
on 11 Nov 2016
Similar problem here, running MATLAB 2016a on a Windows7 machine. Characters don't print properly in Command Window and Editor. Can't seem to type any brackets ('[]') which is very unsettling when using MATLAB!
Problem started yesterday. I checked regional settings and everything seems fine. Same with MATLAB preferences...
Anyone found a way out of this?
0 Comments
See Also
Categories
Find more on Desktop in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!