Topic "UTF-8 support diferences SFTP and FTP"

Author Message
havranek

Guest


1.
I must use UTF-8 setting ON to SFTP connect to my UTF-8 linux (it's OK, protocol SFTP-3)
I must use UTF-8 setting OFF to FTP connect to same linux. Why?
(WinSCP 4.1.9/4.2.2.480, vsftpd-2.0.5-12.el5_3.1)

2.
With FTP protocol WinSCP with UTF-8 setting OFF I can see correct filenames with czech UTF-8 character and can use these files. But WinSCP also can see correct filenames saved icorrectly by another client in codepage windows-1250 on UTF-8 server and cannot use these files and directories.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
havranek wrote:
I must use UTF-8 setting OFF to FTP connect to same linux. Why?
(WinSCP 4.1.9/4.2.2.480, vsftpd-2.0.5-12.el5_3.1)

Possibly your FTP server is not configured to use UTF.

Quote:
With FTP protocol WinSCP with UTF-8 setting OFF I can see correct filenames with czech UTF-8 character and can use these files.

What does it mean, "can see correct filenames with czech UTF-8 character". Do you see czech letters or do you their UTF equivalents?
_________________
Martin Prikryl
Guest




prikryl wrote:

Possibly your FTP server is not configured to use UTF.

If I have good information FTP protocol doesn't transfer information about codepage. Server is completly in UTF-8 (CentOS 5.3, vsftpd). Then I need set FTP client to use UTF-8 for filename coding. I must set WinSCP client diferently for FTP and for SFTP (UTF-8 for FTP off and for SFTP on). I don't understand why.

prikryl wrote:

What does it mean, "can see correct filenames with czech UTF-8 character". Do you see czech letters or do you their UTF equivalents?

Yes. WinSCP sees czech letters in directory. If I have set UTF-8 off with FTP, I see
  • /files-from-utf-8-client/ěčř.txt
  • /files-from-win-1250-client/ěčř.txt - this file I cannot open or download
I I have set UTF-8 on with FTP, I see
  • /files-from-utf-8-client/욍ŞýáĂĂ.txt (can be downloaded)
  • /files-from-win-1250-client/ěčř.txt
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Anonymous wrote:
If I have good information FTP protocol doesn't transfer information about codepage. Server is completly in UTF-8 (CentOS 5.3, vsftpd). Then I need set FTP client to use UTF-8 for filename coding. I must set WinSCP client diferently for FTP and for SFTP (UTF-8 for FTP off and for SFTP on). I don't understand why.

The your FTP server probably converts UTF8 filenames to Windows 1250 on the wire.

I have no explanation for the other problem.
_________________
Martin Prikryl
Havranek

Guest


prikryl wrote:
The your FTP server probably converts UTF8 filenames to Windows 1250 on the wire.


With Total Commander it's O.K. With WinSCP it's not O.K. I think problem is not on my FTP server.

I can set my FTP login name and password for testing to your private e-mail.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Havranek wrote:
I can set my FTP login name and password for testing to your private e-mail.

OK.

You will find my address (if you log in) in my forum profile.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
This issue has been added to tracker.
_________________
Martin Prikryl
ajay

Guest


hi guys,
I am trying to transfer files through sftp, when i try to do so
it does not work
and the file permission changed to "-r-Sr-----".... Please let me know what should be the directory permission where i am putting this file. please revert asap
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
ajay wrote:
hi guys,
I am trying to transfer files through sftp, when i try to do so
it does not work
and the file permission changed to "-r-Sr-----".... Please let me know what should be the directory permission where i am putting this file. please revert asap

Please start new thread, this is out of topic.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License