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 :)
thought, on 22/Sep/07 at 9:48 am # :
Thnx man, that really hepled.
replied, on 16/Dec/07 at 10:24 pm # :
Thanks again! Your post did save me so much time!!!
wrote, on 26/Feb/08 at 2:15 pm # :
Did you set in putty UTF-8 char set?
Configuration -> Window -> Translation -> UTF-8
wrote, on 26/Feb/08 at 9:49 pm # :
Santiajo » Oh... My... God. Never saw this setting before... Thanks! :)
thought, on 03/Apr/08 at 2:14 pm # :
Thank u 2!!(Ozh and Santiajo)
This information has change my life!! &;p
replied, on 10/Apr/08 at 11:03 pm # :
espectacular..... no entiendo porque sirve....
Pero funciona perfecto...
Gracias
wrote, on 11/Apr/08 at 8:49 pm # :
In PuTTY 0.60 you can change the option "Window > Translation > Received data assumed to be in which character set:" to UTF-8. After this all received data will be interpreted as UTF-8 and displayed correctly.
replied, on 11/Apr/08 at 10:14 pm # :
Damn, might help to read other comments first. Sorry for an allready posted solution. ;)