title: PHP generating csv not sending correct new line feeds
body: <p>I have a script that generates a csv file using the following code:</p>
  
  <pre><code>header('Content-type: text/csv');
  header('Content-Disposition: attachment; filename="'.date("Ymdhis").'.csv"');
  print $content;
  </code></pre>
  
  <p>The $content variable simply contains lines with fields separated by commas and then finalised with ."\n"; to generate a new line.</p>
  
  <p>When I open the file in csv it looks fine however, when I try to use the file to import into an external program (MYOB) it does not recognise the End Of Line (\n) character and assumes one long line of text.</p>
  
  <p>When I view the contents of the file in notepad, the end of line character (\n) is a small rectangle box which looks like the character code 0x7F.</p>
  
  <p>If I open the file and re-save it in excel, it removes this character and replaces it with a proper end of line character and I can import the file.</p>
  
  <p>What character do I need to be generating in PHP so that notepad recognises it as a valid End Of Line character? (\n) obviously doesn't do the job.</p>