Differences

This shows you the differences between the selected revisions of the page.

2015-02-17 2015-02-18
known_issues anchor (martin) text mode is not forced on by default (martin)
Line 20: Line 20:
WinSCP by default uses the binary transfer mode for all regular file transfers. Learn how to configure it to [[transfer_mode#changing_transfer_mode|use the text/ASCII transfer mode]]. You may also need to configure [[ui_login_environment|correct server-side text file format]]. WinSCP by default uses the binary transfer mode for all regular file transfers. Learn how to configure it to [[transfer_mode#changing_transfer_mode|use the text/ASCII transfer mode]]. You may also need to configure [[ui_login_environment|correct server-side text file format]].
-On the contrary, when you want to force WinSCP to use the binary mode, even when editing files in a text editor, you have to use an external text editor ((WinSCP internal editor does not support Unix file format.)) and configure WinSCP [[ui_editor_preferences#external|not to force text mode for edited files]]. Also make sure your external text editor saves the file in the format you need. ((Most text editors nowadays support different text file formats, not just a format native to the platform the editor runs on.))+On the contrary, when you want to force WinSCP to use the binary mode, even when editing files in a text editor, you have to use an external text editor ((WinSCP internal editor does not support Unix file format.)) and make sure WinSCP [[ui_editor_preferences#external|does not force text mode for edited files]]. Also make sure your external text editor saves the file in the format you need. ((Most text editors nowadays support different text file formats, not just a format native to the platform the editor runs on.))
===== [[known_issues]] Known Issues with Transfer Mode ===== ===== [[known_issues]] Known Issues with Transfer Mode =====
-  * Pure-FTPd FTP server: When downloading a file with Windows line-endings (CR+LF) in a text/%%ASCII%% mode, the server replaces LF with CR+LF, resulting in an incorrect CR+CR+LF. When opening such file in an Internal editor of WinSCP, the editor interprets the sequence as two line endings (CR and CR+LF) resulting in a blank line after each and every content line. When the file is saved, the internal editor saves two Windows line endings CR+LF and CR+LF. On upload they get converted to two LF's. A workaround is to use an external editor and configure WinSCP [[ui_editor_preferences#external|not to force text mode for edited files]].+  * Pure-FTPd FTP server: When downloading a file with Windows line-endings (CR+LF) in a text/%%ASCII%% mode, the server replaces LF with CR+LF, resulting in an incorrect CR+CR+LF. When opening such file in an Internal editor of WinSCP, the editor interprets the sequence as two line endings (CR and CR+LF) resulting in a blank line after each and every content line. When the file is saved, the internal editor saves two Windows line endings CR+LF and CR+LF. On upload they get converted to two LF's. A workaround is to use an external editor and make sure WinSCP [[ui_editor_preferences#external|does not force text mode for edited files]].
===== Debugging Text File Conversion ===== ===== Debugging Text File Conversion =====

Last modified: by martin