LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Telnet problems with Linux German Installation (https://www.linuxquestions.org/questions/linux-enterprise-47/telnet-problems-with-linux-german-installation-376333/)

satishy 10-24-2005 08:07 AM

Telnet problems with Linux German Installation
 
Hi ,

I am working with german installation of Redhat Enterprise.The issue is
i am not able to get exact german characters of remote system whenever i login through Putty(telnet).

Example:
On Remote System file name is :test.txt
On Putty i am seeing the file name as:testü.txt

Please note that the same testcase is working fine with solaris system.Do i need to setup anything more to resolve this.

Linux Environment details:

HOSTNAME=localhost.localdomain
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=10.4.3.71 1288 22
SSH_TTY=/dev/pts/1
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
USERNAME=root
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/root
LANG=de_DE.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/root
BASH_ENV=/root/.bashrc
LOGNAME=root
SSH_CONNECTION=10.4.3.71 1288 10.4.3.101 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env


Can anyone help me in this regard.

Thanks in advance
satish

Quigi 10-28-2005 04:49 PM

Re: Telnet problems with Linux German Installation
 
Hi Satish,

I don't have a concise fix (maybe change LANG?). But I have a suspicion of what's going on.

Quote:

Originally posted by satishy
Example:
On Remote System file name is :test�.txt
On Putty i am seeing the file name as:testü.txt

Linux Environment details:

[...]
LANG=de_DE.UTF-8
[...]
It seems that characters are UTF-8 encoded on one side, but not decoded on the other side.
I found http://en.wikipedia.org/wiki/UTF-8 helpful. For example, the character ü (u umlaut, 0xfc)
has bits 11111100, which UTF-8 encodes as the two characters
11000011 (character Ã, A tilde, 0303) and 10111100 (character ¼, one-quarter, 0274).
Note that that's almost but not quite what happened in your file name; you started with ö (o umlaut, not u umlaut),
which should be encoded as ö (A tilde, paragraph-mark). It's just one bit off -- not sure what's going on there.

Note that as soon as I used LinuxQuestion's "quote" button, your filenames got changed. In the remote name the character
appears as a black oval containing a white question mark (because the raw o-umlaut character followed by period (.) is not well-formed UTF-8).
And in the Putty name I see u-umlaut here in the text editing window, apparently because the decoding is happening.

These characters with their high bit set make weird things happen. If all this is too longwinded for your taste, I'll say this:
It's a mess. Avoid those Umlauts.

Christian

Quigi 10-28-2005 05:08 PM

Re: Re: Telnet problems with Linux German Installation
 
P.S. Apparently posting changed around my characters >= 128. What I see in Mozilla are the UTF-8 encodings (doubly encoded by now).
Maybe it will result in a legend when I type one character at the beginning of each line below and label it (I'm also including the HTML entity).
A tilde, Ã
one quarter, ¼
paragraph mark, ¶
o umlaut, ö
u umlaut, ü

What you see in your browser may vary.


All times are GMT -5. The time now is 02:43 PM.