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
110
00011 (character Ã, A tilde, 0303) and 10
111100 (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