Table of Contents

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'
fi

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