Topic "End of line encoding problems"

Author Message
mrutledge

Guest


I have a problem that I don't know how to tackle. We have files that get sftpd over to a client's windows computer. He actually initiates the pull. They are complaining that the LF are not in the file. I downloaded winscp and tried this myself, setting the Environment setting to CRLF. When I open winscp and log in, I can see the source file on the right side. If I double-click and copy/paste the contents into Notepad++ I can see the CRLF at the end of each sentance. If I move the file to my desktop I loose them.

I tried setting the transfer mode to Binary with same results. Can anyone suggest something else to try?

Thanks,
Rut
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I suppose that your remote files actually lack the LF's. When downloading files to local editor, WinSCP by default uses text/ascii transfer mode, thus adding the LF. While for regular download, it does not (what you have enforced anyway by using binary protocol). So you probably want to actually enforce using text/ascii mode. Or altering generation of the remote files to have them include the LF's.
_________________
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