LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   character conversion issue - wrongly displayed filenames. (https://www.linuxquestions.org/questions/linux-newbie-8/character-conversion-issue-wrongly-displayed-filenames-849428/)

kevinyeandel 12-10-2010 01:01 AM

character conversion issue - wrongly displayed filenames.
 
Hi
Having problems displaying French chars.
They are dumped into an nfs share by a Windows/cifs configuration which has been blamed for this unwanted behavior but when I transfer a file continaing é via WinSCP to the RedHat, instead of getting the filename Résponse.txt I see R?sponse.txt.
When I refresh WinSCP to view the file it views it ok.

If I do
$vi Résponse.txt
a new file is created.
When I do an ls I see R?sponse.txt
If I then do another
$vi Résponse.txt
on my earlien created file then vi reports
"R<e9>sponse.txt" 1L, 5C
Which means the file Résponse.txt is loaded.

If i do
ls >x
vi x I see
Résponse.txt


In my environment I have
LC_ALL=en_GB.utf8
LANG=en_GB.utf8

I get the é char with the AltGr+e key combo.

Any ideas why ls'ing files which these chars result in an wrongly displayed filenames?

Thanks
Kevin

gd2shoe 12-10-2010 08:47 PM

Woah, woah, woah. Slow down a little. Nfs, cifs, scp? Exactly what path did these files take? Where did they originate? What path did they take? What operating systems do the computers involved run? (I see Redhat and Windows involved, but I don't know specifically how.) Are there three computers involved, or are you confusing nfs and smb/cifs (or is something else going on)?

I may have found an answer for you here:
(relating to the WinSCP transfer)
Quote:

OK, so I suppose that your server is OpenSSH, right?
OpenSSH does not announce support of UTF-8. If your server uses UTF-8 natively, you need to force WinSCP to use it. Please read FAQ.


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