LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Putty and Character encoding problems (https://www.linuxquestions.org/questions/linux-general-1/putty-and-character-encoding-problems-281945/)

rhoekstra 01-25-2005 04:28 AM

Putty and Character encoding problems
 
Hi,

It's not the first thread concerning this, I know. Still, I am unable to find the solution...

I have a Fedora Core 3 system as my Linux router.
I have a Windows client to work on, with Putty to connect to the router.

As RedHat has a preference for utf-8 for a while now, I don't want to mess with the '/etc/sysconfig/i18n' file, leaving it as:

Code:

LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"

Though, when I connect using Putty, weird things happen. I narrow this topic down to mc (midnight commander) and iptraf, but it carries further that this (like man pages (for certain characters) and other, line drawing, applications).

I created the following table with encodings and results:

Code:

+---------------+---------------+-----------+---------------+
| Putty setting | LANG variable | MC result | iptraf result |
+---------------+---------------+-----------+---------------+
| UTF-8        | en_US.UTF-8  | OK        | X (lqqqk)    |
| ISO 8859-15  | en_US.UTF-8  | X (��)    | OK            |
| ISO 8859-15  | en_US        | OK        | OK            |
| UTF-8        | en_US        | X (lqqqk) | X (lqqqk)    |
+---------------+---------------+-----------+---------------+

I could change the LANG in /etc/sysconfig/i18n to not have the UTF-8 suffix. This is, as written above, not desirable, as utf-8 is the RedHat/Fedora default.

The question is, is there a good way (besides poor man's drawing) to have the linux box have the UTF-8 encoding and putty display it right on all occasions?

I would appreciate all the help . . .

penguin359 07-30-2007 03:45 PM

Make sure you have Putty configured to accept UTF-8 encoded data instead of Windows-1252. The setting is under Window->Translation->Character set.

penguin359 07-30-2007 03:46 PM

Make sure you have Putty configured to use UTF-8 for it's character set and not Windows-1252/ISO-8859-1. The setting is under Window->Translation->Character set.


All times are GMT -5. The time now is 09:57 AM.