title: Is there a way to add a hex line break to a csv in PHP?
body: <p>I am exporting data from magento which needs to be imported on another system. The magento installation is running on Unix, but the import is happening on windows.</p>
  
  <p>So the csv is created on unix so the line breaks are just hex <code>0a</code>, where as Windows expects them to be <code>0d 0a</code>, I believe. If it's opened in wordpad then saved, then it's fine.</p>
  
  <p><strong>--- EDIT ---</strong></p>
  
  <p>This is what I'm doing to add lines to my csv:</p>
  
  <p><code>fwrite($handle, '"'.implode('","', $productdata).'"'."\r\n");</code></p>
  
  <p>Adding each field to the array and at the write I just implode the array on closing quotes and a comma and add <code>\r\n</code> onto the end.</p>
  
  <p>From the limited amount I've read about it, it appears Unix/Mac parse CRLF as <code>0a</code> while windows parses it as <code>0d 0a</code>. Maybe I'm not quite hitting the nail on the head, regardless, the issue remains.</p>
  
  <p>Is there any way I can force line breaks to be parsed as the hex that windows is looking for, or anyway I can manually add the hex?</p>