I have an annoying problem that should be easy to solve.
I need to create a file in ASCII-format (ISO-8859-1) with windows-line breaks <CRLF> and send it via FTP. I'm using PHP on a Linux server and the FTP-transfer is not a problem... The script files are encoded with UTF-8 .
As I understand it the FTP-software might affect (change) the line breaks when transferring. Perhaps also the charset?
Can anyone clarify how to create such file, send via FTP and make sure that it has the correct charset and line breaks after upload via FTP?
I need to create a file in ASCII-format (ISO-8859-1) with windows-line breaks <CRLF> and send it via FTP. I'm using PHP on a Linux server and the FTP-transfer is not a problem... The script files are encoded with UTF-8 .
As I understand it the FTP-software might affect (change) the line breaks when transferring. Perhaps also the charset?
Can anyone clarify how to create such file, send via FTP and make sure that it has the correct charset and line breaks after upload via FTP?
Comment