: Fix DOS/Unix Line Feeds |
Because UNIX uses a different EOL (End Of Line) scheme than DOS/Windows you will need
to translate any text (html, Perl script, etc.) files before uploading them to your
Virtual Server. If you use FTP, it will translate the files for you as long
as you transfer them in ASCII mode. UNIX text files have lines delimited by a
single line-feed character (0A hex), whereas DOS text-mode files are delimited with a
carriage-return/line-feed pair (0D/OA hex). We have placed a very useful utility,
fixcrlf.exe, that you can install on your Windows
PC to
convert DOS files to UNIX and UNIX files to DOS. With fixcrlf you simply
drag-and-drop your file on to the fixcrlf dialog. It automatically detects which the ASCII
file type and makes the proper conversion. Please note that binary files do not need to be
converted.
This utility is great for ASCII files that you have mistakenly transferred to the
server in binary mode and then transferred back to your PC. If you attempt to re-FTP
this type of file back to the server, it will most likely lock up your FTP program with a
message like "blocking call cancelled".
|