thanks, my mind slipped here. Yes of course CRLF is ascii.
But what I am facing is this CRLF ASCII file when ascii download from the unix server, empty line is added for each line.
OK, here is what happens. I don't know what ftp and what version of dreamweaver the client used. But I tried with an old win ftp to repeat the error, only in this case, the CRLF file get messed up.
1) file saved as CR LF (windows)
2) binary ftp upload it to unix server.
3) ascii ftp download it back to local machine.
4) the file is messed. it is added with empty line below every line after this process.
What is the logic behind it?
A glitch in dreamweaver or old win ftp? or it is supposed to be like that?
My guess of the logic is
1) file saved as CR LF (windows) - CR LF for each line return.
2) binary ftp upload it to unix server. Binary transfer the file as it is, so the CR LF is kept. (if we ascii transfer the CR LF file to unix hosting, it turned to LF file)
3) ascii ftp download. Due to it is ascii download, the format may not be kept as original. It is reading from a unix server of a file with CR LF, some how, it reads CR LF to two lines.
I don't know why ftp upload from windows local to unix hosting, doesn't matter the file is CR LF or LF, does matter the ftp mode is ascii or binary, the uploaded file is OK.
But when ascii download CR LF file from unix server, then the file is added with one empty line for each line.