I use PuTTY on Windows 7 to access a Linux machine with Ubuntu 10.10. I think that Windows 7 is using Latin-1. But I need to use UTF-8 on the Linux machine and in a PostgreSQL database.
How can I do this with PuTTY?
You can set PuTTY to use UTF-8 from the configuration dialog when you connect. Go to Window -> Translation, and set "Received data assumed to be in which character set" to UTF-8.
Also check that your locale is something ending in
If it's not, run
The two basic factors are Window/Translation in putty and locale settings in Linux, as instructed here and many other places.
In addition, it may help in putty to set Connection/Data/Terminal-type string to "putty", and/or in Linux to export NCURSES_NO_UTF8_ACS=1. These two are also mentioned multiple places.
But: you may still get blocks for certain characters because the default fonts like Courier and Lucida Console don't have all unicode chars. Download and install http://dejavu-fonts.org/wiki/Download, and set putty to use it.
This last trick was necessary for me to get noping (recommended!) to show all graphic characters.