When I use SSH to log in to a remote machine and use something like Aptitude or MC on the remote machine some of the characters on the screen e.g IBM box characters appear as something else which makes the screen difficult to read.
Is there a way to cure this?
On Wed, Jan 30, 2008 at 10:23:57AM +0000, Barry Samuels wrote:
When I use SSH to log in to a remote machine and use something like Aptitude or MC on the remote machine some of the characters on the screen e.g IBM box characters appear as something else which makes the screen difficult to read.
Is there a way to cure this?
Yes, but it may take a while to get it right! :-)
You need to get the terminal window on the client end to recognise the character set that the remote end is using/sending. Presumably since it has "IBM box characters" and things like that it's a Windows[ish] character set.
Look at the locale command and the LC_xxx environment variables and that should hopefully take you in the right direction.
On 30/01/08 12:59:20, Chris G wrote:
On Wed, Jan 30, 2008 at 10:23:57AM +0000, Barry Samuels wrote:
When I use SSH to log in to a remote machine and use something like Aptitude or MC on the remote machine some of the characters on the screen e.g IBM box characters appear as something else which makes the screen difficult to read.
Is there a way to cure this?
Yes, but it may take a while to get it right! :-)
You need to get the terminal window on the client end to recognise the character set that the remote end is using/sending. Presumably since it has "IBM box characters" and things like that it's a Windows [ish] character set.
Look at the locale command and the LC_xxx environment variables and that should hopefully take you in the right direction.
-- Chris Green
Thanks Chris. That was easy. Both systems are Debian but one was set to en_GB and the other to en_GB_UTF8 or something like that. All fixed.
On 30 Jan 13:59, Barry Samuels wrote:
On 30/01/08 12:59:20, Chris G wrote:
On Wed, Jan 30, 2008 at 10:23:57AM +0000, Barry Samuels wrote:
When I use SSH to log in to a remote machine and use something like Aptitude or MC on the remote machine some of the characters on the screen e.g IBM box characters appear as something else which makes the screen difficult to read.
Is there a way to cure this?
Yes, but it may take a while to get it right! :-)
You need to get the terminal window on the client end to recognise the character set that the remote end is using/sending. Presumably since it has "IBM box characters" and things like that it's a Windows [ish] character set.
Look at the locale command and the LC_xxx environment variables and that should hopefully take you in the right direction.
-- Chris Green
Thanks Chris. That was easy. Both systems are Debian but one was set to en_GB and the other to en_GB_UTF8 or something like that. All fixed.
I tend to use en_GB.UTF-8 everywhere these days - but then, utf8 is quite handy. Most modern systems should be running with a utf8 locale, I'd suggest that if you didn't switch to the utf-8 one then you might want to take a look at: dpkg-reconfigure locales
And get it to generate the locale and make it the default.
Just my 2p,
On Jan 30, 2008 2:08 PM, Brett Parker iDunno@sommitrealweird.co.uk wrote:
I tend to use en_GB.UTF-8 everywhere these days
Thanks for the hints - my putty sessions were getting mangled on £ signs. I've just changed putty to use UTF8 and problem solved!
Ta. Tim.