FTP problem with line breaks in notepad

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to put some ASCII text files on an FTP site for a customer, and I
am having trouble. When the files are pulled off the FTP site and opened in
Notepad, all of the line breaks are gone and black boxes are displayed in the
text where they were. If I open the files with other text editors it is
fine. I would like to know why this is and how can I prevent it whether I am
moving files from WINDOW to HP_UX, WINDOWS to WINDOWS, or HP_UX to WINDOWS.
 
/JasonDWilson/ said:
I am trying to put some ASCII text files on an FTP site for a customer, and I
am having trouble. When the files are pulled off the FTP site and opened in
Notepad, all of the line breaks are gone and black boxes are displayed in the
text where they were. If I open the files with other text editors it is
fine. I would like to know why this is and how can I prevent it whether I am
moving files from WINDOW to HP_UX, WINDOWS to WINDOWS, or HP_UX to WINDOWS.

If all else fails, perhaps you can zip the files, for UNzipping at their end.
 
JasonDWilson said:
I am trying to put some ASCII text files on an FTP site for a customer, and I
am having trouble. When the files are pulled off the FTP site and opened in
Notepad, all of the line breaks are gone and black boxes are displayed in the
text where they were. If I open the files with other text editors it is
fine. I would like to know why this is and how can I prevent it whether I am
moving files from WINDOW to HP_UX, WINDOWS to WINDOWS, or HP_UX to WINDOWS.

Upload and download in ASCII mode, not binary mode. The line-end
indicators are automatically altered from what is required at the source
to what is required at the destination. Other alterations will also
occur for character translations between differing hosts.

If you have an FTP client that shows options, just select the ASCII mode
option. (Generally, binary mode is the default.) I use an FTP client
that allows me to set a list of file extensions that should always be
transferred either way as ASCII. For all other extensions, I must
either manually select ASCII mode or else accept a binary transfer.

If you are using a command line FTP client, enter the "ascii" command
before entering a "put" or "get" command. The "ascii" command will
remain in effect until you either quit or enter the "binary" command.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
 
Back
Top