Differences
This shows you the differences between the selected revisions of the page.
faq_line_breaks 2019-12-15 | faq_line_breaks 2023-10-06 (current) | ||
Line 8: | Line 8: | ||
This article explains possible causes of the problem and their solutions. | This article explains possible causes of the problem and their solutions. | ||
- | 1 | + | ===== Text File Formats ===== |
- | 00:00:00,433 --> 00:00:08,566 | + | |
- | ♪ ♪ | + | |
- | 2 | + | Different platforms (operating systems) use a different format of text files. The most common formats are Unix and Windows format. A primary difference is that different character or sequence of characters is used to signify an end of a line. On Unix, it's LF character (''\n'', ''0A'' or 10 in decimal). On Windows, it's a sequence of two characters, CR and LF (''\r'' + ''\n'', ''0D'' + ''0A'' or 13 + 10 in decimal). |
- | 00:00:08,600 --> 00:00:10,300 | + | |
- | ♪ I USED TO BELIEVE ♪ | + | |
- | + | ||
- | 3 | + | |
- | 00:00:11,166 --> 00:00:15,133 | + | |
- | ♪ WE WERE BURNIN' ON THE EDGE | + | |
- | OF SOMETHIN' BEAUTIFUL ♪ | + | |
- | + | ||
- | 4 | + | |
- | 00:00:16,000 --> 00:00:17,400 | + | |
- | ♪ SOMETHIN' BEAUTIFUL ♪ | + | |
- | + | ||
- | 5 | + | |
- | 00:00:18,333 --> 00:00:19,633 | + | |
- | ♪ SELLING A DREAM ♪ | + | |
- | + | ||
- | 6 | + | |
- | 00:00:20,566 --> 00:00:24,633 | + | |
- | ♪ SMOKE AND MIRRORS KEEP | + | |
- | US WAITIN' ON A MIRACLE ♪ | + | |
- | + | ||
- | 7 | + | |
- | 00:00:25,633 --> 00:00:27,133 | + | |
- | ♪ ON A MIRACLE ♪ | + | |
- | + | ||
- | 8 | + | |
- | 00:00:28,233 --> 00:00:30,766 | + | |
- | ♪ SAY, GO THROUGH | + | |
- | THE DARKEST OF DAYS ♪ | + | |
- | + | ||
- | 9 | + | |
- | 00:00:31,000 --> 00:00:33,300 | + | |
- | ♪ HEAVEN'S A | + | |
- | HEARTBREAK AWAY ♪ | + | |
- | + | ||
- | 10 | + | |
- | 00:00:33,333 --> 00:00:37,166 | + | |
- | ♪ NEVER LET YOU GO, | + | |
- | NEVER LET ME DOWN ♪ | + | |
- | + | ||
- | 11 | + | |
- | 00:00:37,766 --> 00:00:40,466 | + | |
- | ♪ OH, IT'S BEEN A | + | |
- | HELL OF A RIDE ♪ | + | |
- | + | ||
- | 12 | + | |
- | 00:00:40,500 --> 00:00:43,000 | + | |
- | ♪ DRIVING THE EDGE OF A KNIFE ♪ | + | |
- | + | ||
- | 13 | + | |
- | 00:00:43,033 --> 00:00:46,466 | + | |
- | ♪ NEVER LET YOU GO, | + | |
- | NEVER LET ME DOWN ♪ | + | |
- | + | ||
- | 14 | + | |
- | 00:00:47,233 --> 00:00:49,366 | + | |
- | ♪ DON'T YOU GIVE | + | |
- | UP, NAH-NAH-NAH ♪ | + | |
- | + | ||
- | 15 | + | |
- | 00:00:49,400 --> 00:00:51,700 | + | |
- | ♪ I WON'T GIVE UP, | + | |
- | NAH-NAH-NAH ♪ | + | |
- | + | ||
- | 16 | + | |
- | 00:00:51,733 --> 00:00:56,166 | + | |
- | ♪ LET ME LOVE YOU | + | |
- | LET ME LOVE YOU ♪ | + | |
- | + | ||
- | 17 | + | |
- | 00:00:56,666 --> 00:00:59,000 | + | |
- | ♪ DON'T YOU GIVE | + | |
- | UP, NAH-NAH-NAH ♪ | + | |
- | + | ||
- | 18 | + | |
- | 00:00:59,033 --> 00:01:01,366 | + | |
- | ♪ I WON'T GIVE UP, | + | |
- | NAH-NAH-NAH ♪ | + | |
- | + | ||
- | 19 | + | |
- | 00:01:01,400 --> 00:01:05,566 | + | |
- | ♪ LET ME LOVE YOU | + | |
- | LET ME LOVE YOU ♪ | + | |
- | + | ||
- | 20 | + | |
- | 00:01:05,600 --> 00:01:07,100 | + | |
- | ♪ OH BABY, BABY ♪ | + | |
- | + | ||
- | 21 | + | |
- | 00:01:07,133 --> 00:01:17,133 | + | |
- | ♪ ♪ | + | |
- | + | ||
- | 22 | + | |
- | 00:01:17,166 --> 00:01:25,466 | + | |
- | ♪ ♪ | + | |
- | + | ||
- | 23 | + | |
- | 00:01:25,500 --> 00:01:26,766 | + | |
- | ♪ DON'T FALL ASLEEP ♪ | + | |
- | + | ||
- | 24 | + | |
- | 00:01:28,366 --> 00:01:32,000 | + | |
- | ♪ AT THE WHEEL, WE'VE GOT A | + | |
- | MILLION MILES AHEAD OF US ♪ | + | |
- | + | ||
- | 25 | + | |
- | 00:01:32,633 --> 00:01:34,166 | + | |
- | ♪ MILES AHEAD OF US ♪ | + | |
- | + | ||
- | 26 | + | |
- | 00:01:35,133 --> 00:01:36,500 | + | |
- | ♪ ALL THAT WE NEED ♪ | + | |
- | + | ||
- | 27 | + | |
- | 00:01:37,466 --> 00:01:42,433 | + | |
- | ♪ IS A RUDE AWAKENING TO KNOW | + | |
- | WE'RE GOOD ENOUGH YEAH ♪ | + | |
- | + | ||
- | 28 | + | |
- | 00:01:42,466 --> 00:01:43,700 | + | |
- | ♪ KNOW WE'RE GOOD ENOUGH ♪ | + | |
- | + | ||
- | 29 | + | |
- | 00:01:44,766 --> 00:01:47,633 | + | |
- | ♪ SAY GO THROUGH | + | |
- | THE DARKEST OF DAYS ♪ | + | |
- | + | ||
- | 30 | + | |
- | 00:01:47,666 --> 00:01:50,133 | + | |
- | ♪ HEAVEN'S A HEARTBREAK AWAY ♪ | + | |
- | + | ||
- | 31 | + | |
- | 00:01:50,166 --> 00:01:53,733 | + | |
- | ♪ NEVER LET YOU GO, | + | |
- | NEVER LET ME DOWN ♪ | + | |
- | + | ||
- | 32 | + | |
- | 00:01:54,533 --> 00:01:57,266 | + | |
- | ♪ OH IT'S BEEN A | + | |
- | HELL OF A RIDE ♪ | + | |
- | + | ||
- | 33 | + | |
- | 00:01:57,300 --> 00:01:59,600 | + | |
- | ♪ DRIVING THE EDGE OF A KNIFE ♪ | + | |
- | + | ||
- | 34 | + | |
- | 00:01:59,633 --> 00:02:03,766 | + | |
- | ♪ NEVER LET YOU GO, | + | |
- | NEVER LET ME DOWN ♪ | + | |
- | + | ||
- | 35 | + | |
- | 00:02:04,000 --> 00:02:06,233 | + | |
- | ♪ DON'T YOU GIVE | + | |
- | UP, NAH-NAH-NAH ♪ | + | |
- | + | ||
- | 36 | + | |
- | 00:02:06,266 --> 00:02:08,433 | + | |
- | ♪ I WON'T GIVE UP, | + | |
- | NAH-NAH-NAH ♪ | + | |
- | + | ||
- | 37 | + | |
- | 00:02:08,466 --> 00:02:13,366 | + | |
- | ♪ LET ME LOVE YOU | + | |
- | LET ME LOVE YOU ♪ | + | |
- | + | ||
- | 38 | + | |
- | 00:02:13,400 --> 00:02:15,733 | + | |
- | ♪ DON'T YOU GIVE | + | |
- | UP, NAH-NAH-NAH ♪ | + | |
- | + | ||
- | 39 | + | |
- | 00:02:15,766 --> 00:02:18,200 | + | |
- | ♪ I WON'T GIVE UP, | + | |
- | NAH-NAH-NAH ♪ | + | |
- | + | ||
- | 40 | + | |
- | 00:02:18,233 --> 00:02:22,300 | + | |
- | ♪ LET ME LOVE YOU | + | |
- | LET ME LOVE YOU ♪ | + | |
- | + | ||
- | 41 | + | |
- | 00:02:22,333 --> 00:02:23,666 | + | |
- | ♪ OH BABY, BABY ♪ | + | |
- | + | ||
- | 42 | + | |
- | 00:02:23,700 --> 00:02:33,700 | + | |
- | ♪ ♪ | + | |
- | + | ||
- | 43 | + | |
- | 00:02:33,733 --> 00:02:42,666 | + | |
- | ♪ ♪ | + | |
- | + | ||
- | 44 | + | |
- | 00:02:42,700 --> 00:02:45,266 | + | |
- | ♪ NEVER LET YOU GO | + | |
- | NEVER LET YOU DOWN, GIRL ♪ | + | |
- | + | ||
- | 45 | + | |
- | 00:02:45,300 --> 00:02:47,633 | + | |
- | ♪ NEVER LET YOU GO NEVER | + | |
- | LET YOU DOWN, GIRL ♪ | + | |
- | + | ||
- | 46 | + | |
- | 00:02:47,666 --> 00:02:48,633 | + | |
- | ♪ NEVER LET YOU GO ♪ | + | |
- | + | ||
- | 47 | + | |
- | 00:02:49,733 --> 00:02:52,400 | + | |
- | ♪ GIRL, NEVER LET YOU GO ♪ | + | |
- | + | ||
- | 48 | + | |
- | 00:02:52,433 --> 00:02:54,700 | + | |
- | ♪ NEVER LET YOU GO | + | |
- | NEVER LET YOU DOWN, GIRL ♪ | + | |
- | + | ||
- | 49 | + | |
- | 00:02:54,733 --> 00:02:57,266 | + | |
- | ♪ NEVER LET YOU GO NEVER | + | |
- | LET YOU DOWN, GIRL ♪ | + | |
- | + | ||
- | 50 | + | |
- | 00:02:57,300 --> 00:02:58,500 | + | |
- | ♪ NEVER LET YOU GO ♪ | + | |
- | + | ||
- | 51 | + | |
- | 00:02:58,533 --> 00:03:01,366 | + | |
- | ♪ YEAH YEAH GIRL, | + | |
- | NEVER LET YOU GO ♪ | + | |
- | + | ||
- | 52 | + | |
- | 00:03:01,400 --> 00:03:03,700 | + | |
- | ♪ DON'T YOU GIVE UP | + | |
- | (NAH, NAH, NAH) ♪ | + | |
- | + | ||
- | 53 | + | |
- | 00:03:03,733 --> 00:03:06,100 | + | |
- | ♪ I WON'T GIVE UP | + | |
- | (NAH, NAH, NAH) ♪ | + | |
- | + | ||
- | 54 | + | |
- | 00:03:06,133 --> 00:03:10,366 | + | |
- | ♪ LET ME LOVE YOU | + | |
- | LET ME LOVE YOU ♪ | + | |
- | + | ||
- | 55 | + | |
- | 00:03:11,066 --> 00:03:13,266 | + | |
- | ♪ DON'T YOU GIVE UP | + | |
- | (NAH, NAH, NAH) ♪ | + | |
- | + | ||
- | 56 | + | |
- | 00:03:13,300 --> 00:03:15,566 | + | |
- | ♪ I WON'T GIVE UP | + | |
- | (NAH, NAH, NAH) ♪ | + | |
- | + | ||
- | 57 | + | |
- | 00:03:15,600 --> 00:00:00,000 | + | |
- | ♪ LET ME LOVE YOU | + | |
- | LET ME LOVE YOU ♪ | + | |
+ | While many applications and systems nowadays can work with both formats, some require a specific format (notably Windows Notepad supported Windows format only until Windows 10 1809). &win10 When presenting a file in another format, they fail to display it correctly, as described above. | ||
===== Text/ASCII Transfer Mode ===== | ===== Text/ASCII Transfer Mode ===== | ||
Line 279: | Line 20: | ||
WinSCP by default uses the binary transfer mode for all //regular file transfers//. Learn how to configure it to [[transfer_mode#changing|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|use the text/ASCII transfer mode]]. You may also need to configure [[ui_login_environment|correct server-side text file format]]. | ||
- | On the contrary, WinSCP always uses text transfer mode, when //editing file// in WinSCP internal editor or Windows Notepad. If you want to force WinSCP to use the binary mode when editing files, 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.)) | + | On the contrary, WinSCP always uses text transfer mode, when //editing file// in WinSCP internal editor (or Windows Notepad on Windows versions older then Windows 10 1809). If you want to force WinSCP to use the binary mode when editing files, 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 ===== | ||
Line 285: | Line 26: | ||
* 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]]. | * 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]] Debugging Text File Conversion ===== |
If enabling (or disabling) text/ASCII transfer mode does not help with the problem and your transferred/edited file is still perceived incorrectly by the target system, you need to find out in what step the file got converted incorrectly (or haven't got converted). | If enabling (or disabling) text/ASCII transfer mode does not help with the problem and your transferred/edited file is still perceived incorrectly by the target system, you need to find out in what step the file got converted incorrectly (or haven't got converted). |