UTF-8 support diferences SFTP and FTP

Advertisement

havranek
Guest

UTF-8 support diferences SFTP and FTP

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,791
Location:
Prague, Czechia

Re: UTF-8 support diferences SFTP and FTP

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.

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

Reply with quote

Guest

Re: UTF-8 support diferences SFTP and FTP

martin 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.

martin 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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,791
Location:
Prague, Czechia

Re: UTF-8 support diferences SFTP and FTP

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

Reply with quote

Havranek
Guest

Re: UTF-8 support diferences SFTP and FTP

martin 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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,791
Location:
Prague, Czechia

Re: UTF-8 support diferences SFTP and FTP

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,791
Location:
Prague, Czechia

Re: UTF-8 support diferences SFTP and FTP

This issue has been added to tracker.
_________________
Martin Prikryl

Reply with quote

ajay
Guest

sftp issue :(

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
29,791
Location:
Prague, Czechia

Re: sftp issue :(

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

Reply with quote

Advertisement

You can post new topics in this forum