by Mofi » Sun May 25, 2008 3:19 am
Using the ASCII transfer mode for binary files like images is simply stupid because replacing every 0D 0A by only 0A on upload or every 0A by 0D 0A on download will surely corrupt a binary file like an image.
For text files this line ending conversion makes sense for those Windows programs which are not capable handling text files with Unix line endings. But UltraEdit can handle Unix text files. On the other hand up-to-date interpreters for Perl, PHP, ... on Unix servers handle scripts with DOS (Windows) line endings without any problem. The days that Unix progams failed on scripts with DOS line endings are years ago. So nowadays the main reason for using only the line feed for end of line is only to save 1 byte per line.
So once again use always the binary mode. Don't forget for new files to convert them to Unix before uploading or if you create with UltraEdit only text files for webpages select UNIX for the setting Default file type for new files. Enable also setting On paste convert line endings to destination type (UNIX/MAC/DOS). In the status bar at bottom of the UltraEdit main window you can see which line ending format the current file has.