Handle UTF-8 in Putty

Based on http://planetozh.com/blog/2007/08/how-to-display-utf8-in-your-putty-bash-shell/.

Can be done form the shell or from putty's configuration:

.bashrc : Unconfigured Putty

Add to ~/.bashrc:

if [[ $SSH_CONNECTION ]]; then
        echo -ne '\e%G\e[?47h\e%G\e[?47l'

Reload (source ~/.bashrc) or re-login and from then on it should read and write UTF-8 characters correctly.

Putty configuration

Window → Translation → Received data assumed to be in which character set: → UTF-8

msw_lx/putty_utf8.txt · Last modified: 2010/11/01 19:35 by Toni Corvera
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki