I was having a few reading problems on a server I've recently got my hands on: the locale is set to something like French UTF8, but Putty was displaying annoying ÃƒÂ© and stuff instead of accented characters.
I was expecting the solution to be something linuxish like read boring man pages till I finally decide it's not worth the hassle and live with it, but it was so simple that I'm still amazed. Just add the following lines (in your ~/.bash_profile for instance:
- echo -ne '\e%G\e[?47h\e%G\e[?47l'
No idea why it works, if it's for bash or any shell, but well, it just works. Cool ! (via)
Edit: As a few readers commented, there's something way easier to do in your PuTTy configuration. Read comments :)
Want to share or tweet this post? Please use this short URL: http://ozh.in/fa