Re: Carriage Return lost during SFTP
Most SFTP servers do not support the ascii mode at all.
When connected to such server, WinSCP simulates the ascii mode by converting the file on its own.
By default, WinSCP assumes a *nix server, so it converts CR+LF => LF.
This is obviously wrong, if you are connecting to a Windows server.
When connected to Windows server, either avoid using the ascii mode, or tell WinSCP that the server is Windows (which will effectively prevent WinSCP from using the ascii mode, even if told to).
https://winscp.net/eng/docs/ui_login_environment
When connected to such server, WinSCP simulates the ascii mode by converting the file on its own.
By default, WinSCP assumes a *nix server, so it converts CR+LF => LF.
This is obviously wrong, if you are connecting to a Windows server.
When connected to Windows server, either avoid using the ascii mode, or tell WinSCP that the server is Windows (which will effectively prevent WinSCP from using the ascii mode, even if told to).
https://winscp.net/eng/docs/ui_login_environment