2
I have a fresh Ubuntu install and I want to connect over ssh in a gnome-terminal. The server uses latin1 (All files etc. are latin1), so I want to use that in the session. I have changed the charset in the menu-option so that characters are output correctly to my screen, but I can't input non-ascii correctly. Should I pass some magic arguments to ssh or is there a setting in gnome-terminal, or should I use stty? I'm a bit lost.
Update:
OK. I have now narrowed the problem down a bit. If I run the following on the command line:
php -r 'while ($c = fread(STDIN, 1)) { echo $c; }'
And press a non-ascii key, it echoes out correctly. However, if I type the same key in the shell, nothing happens. So this must be some setting in the shell environment (Locale setting?). Any ideas?
Whoohoo .. That was it. Thanks a bunch - This has been haunting me for weeks. – troelskn – 2009-09-18T06:34:28.683