character displayed incorrectly by ftp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers character displayed incorrectly by ftp
# 1  
Old 08-24-2009
character displayed incorrectly by ftp

Hi there,

I have a ftp server called atlantis. Because of the f...g french characters, I noticed something very weird. Depending on what program I use (ftp, lftp or ssh) the same character is displayed as three different ways.

On my local computer, the file is correctly displayed as "modéles". This file was uploaded on atlantis using lftp. Thus lftp displays the remote file correctly. But if I use builtin ftp or ssh, the file name is displayed incorrectly

Here you see the way the file is displayed on my local computer using terminal, ftp and lftp :
Code:
xxx@localhost:~$ ls -l
drwxr-xr-x  2   xxx xxx 4096    2009-07-22 05:03    Modéles
xxx@localhost:~$ echo -e "open atlantis\nuser xxx xxx\nls" | ftp -n
drwxr-xr-x  2   xxx xxx 4096    Jul 22 03:03        Mod??les
xxx@localhost:~$ lftp xxx:xxx@atlantis -e "ls; exit"
drwxr-xr-x  2   xxx xxx 4096    Jul 22 03:03        Modéles

Here you see the way the file is displayed on the atlantis server using ssh :
Code:
xxx@atlantis:~$ ls -l
drwxr-xr-x  2   xxx xxx 4096    2009-07-22 05:03    Modéles

Can you help me understand what's wrong ?
Thanks for your help.
Santiago
# 2  
Old 08-24-2009
You can probe to look locale valors if is a frech serv maybe yo need to use fr_FR.iso88591. And you can see the properties of your terminal manage (gnometerminal,putty, etc...) this aplications can be configure to.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Ls incorrectly says file not found in sftp.

Hi all When I sftp to an Oracle cloud server, to a folder where there are more than 10k files, and list a small subset of files, it works OK. When I try list more than 10k files, it says file not found. Example output below. (FYI ls/mget with 6k files works OK on this server) Has anyone... (3 Replies)
Discussion started by: pdinsdale
3 Replies

2. Shell Programming and Scripting

Hebrew character convert error while put thru ftp

Hi all , i have a script which cp xml files from linux to other server thru ftp my xml file contains charcters in hebrew . my script is #!/bin/bash HOST="....." USER="....." PASSWORD="..." cd /usr2/app/naama/ filelist='find . -mmin -60 | tail -n +2 | awk -F "/" '{print $2}' | grep xml'... (3 Replies)
Discussion started by: naamas03
3 Replies

3. Shell Programming and Scripting

Ftp to directory with special character

Hi. I need a help in fixing the issue related to FTP files to directory name has special character. ftp -n machinename <<EOF > ftplog.lis user login name password cd home/directory - 1/destinantion put filename bye EOF In the ftplog.lis, I am seeing a error message like home.directory... (1 Reply)
Discussion started by: Arvy
1 Replies

4. UNIX for Dummies Questions & Answers

Incorrectly using 'ls' in if/then alias

I have an alias defined in which I wish to print the contents of a specific directory using 'ls' based on the if/then condition. The if/then conditions are being correctly evaluated, and the 'ls <path>' result is correct (tested directly in a terminal) although for some reason it seems the 'ls... (4 Replies)
Discussion started by: coldcoffeecup
4 Replies

5. UNIX for Dummies Questions & Answers

Strings comparing incorrectly

Hello I'm very new to Linux and shell scripting so I only know basic stuff. I'm making a script with the purpose of finding the longest string or word in a file. Here's what I got so far: #!/bin/bash longest="" for i in $(strings -n $1); do if ] then longest=$i fi done echo $longest... (4 Replies)
Discussion started by: SCB
4 Replies

6. Shell Programming and Scripting

FTP Issue with Non ascii character

I have one file .dat file on windows server containg the following text "Bürki" Now When I am using FTP (get) command from UNIX server the text is appering is as "Bürki" I want to preserve the text in the file on UNIX server as it is in source file. Could you please suggest some... (2 Replies)
Discussion started by: Bhushan D
2 Replies

7. Shell Programming and Scripting

ftp:Password field is displayed

I am trying to get a file by doing ftp to the server. The below script works fine but as I type password it is displayed as simple text. HOST='192.108.245.101' echo 'username: ' read USER echo 'password:' read PASSWD ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD lcd... (1 Reply)
Discussion started by: hiten.r.chauhan
1 Replies

8. Shell Programming and Scripting

Totals in a file - incorrectly displaying

Afternoon, I have a script which creates/modifies data into a formatted csv. The trailer record should display 2 columns, the first is a static entry of "T" to identify it as a trailer record. The 2nd is a total of amounts in a column throughout the entire file. My total isn't displaying... (8 Replies)
Discussion started by: mcclunyboy
8 Replies

9. UNIX for Dummies Questions & Answers

PATH variable set incorrectly?

I've noted that in order to use commands like ifconfig, I have to prefix the commands with the directory. /etc/profile shows that the paths should be part of the PATH environment variable; any idea where the bug is? :confused: # /etc/profile # System wide environment and startup... (1 Reply)
Discussion started by: jon80
1 Replies

10. Linux

Hostname displays incorrectly

hiii, in many of the linux machines i have tried this but the result is the same everywhere. if there are double letters in a hostname then that is displayed as single letter. e.g. if hostname is set to nepttune then login into the shell will display : NEPTUNE(admin)@/ $ hostname... (15 Replies)
Discussion started by: shamik
15 Replies
Login or Register to Ask a Question