
General
How To Fix: Strange Characters in PuTTY
When opening an SSH session from a Windows box to a Linux machine using PuTTY I noticed some strange characters. The text looked like this:
warning: format â%dâ expects type âintâ, but argument 2 has type âint *â
I was puzzled, because I had not had experienced this problem before when using PuTTY. Typing echo $LANG
in the bash terminal prompt showed that it was using en_US.UTF-8
as the character set . The problem was caused by PuTTY expecting a different character set (One of the Windows ISO-8859 charsets).
To solve this problem, PuTTY must be configured to speak the same language: UTF8. Here’s how:
- Open the PuTTY configure dialogue by clicking in the upper left corner of the window and selecting “Change Settings…” from the menu.
- Go to “Translation” on the left side tree menu and select “UTF-8” from the pulldown menu to the right.
- Apply the settings.
Now the correct output will show:
warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘int *’
this was awesome. thank you!
Thanks for the info, helped me out!
Thanks, that helped me!!
Thank you very much ^_^
Thank you. Worked great