Luit: "translator" between the application and the UTF-8 terminal
After receiving the ssh access parameters for the new server to host the local LUG site, I used the usual movements to launch the terminal emulator in my Ubuntu and connect to the remote system. A little surprise was for me that the remote environment was in KOI8-R and, of course, all the Russian characters on my side were displayed as you know how. :) The rights to the remote machine were minimal, so it was not possible to change anything there. Panacea came in the form of luit :
UTF-8 terminal emulator. It will convert the output terminal from the UTF-8 to the locale's encoding.
Connect in this way:
$ luit -encoding koi8-r ssh remote.host
Perhaps, instead of koi8-r, it could be cp1251 , if remote.host is actually configured this way .
The luit utility should be present in any sane distribution out-of-the-box.