title: CSV new Line Character
body: <p>I have an Excel Template that i use to fill in data and export that to CSV to populate the following page on my website.</p>
  
  <p><a href="http://play.mink7.com/ifocus_v4/careers.php" rel="nofollow">http://play.mink7.com/ifocus_v4/careers.php</a></p>
  
  <p>When i export the file in Windows i get the formatting for the new line charcter right. But when i export the same excel file from MAC i dont get the new line character.</p>
  
  <pre><code>Windows File
  play.mink7.com/ifocus/win.csv
  </code></pre>
  
  <p>and</p>
  
  <pre><code>MAc File
  play.mink7.com/ifocus/mac.csv
  </code></pre>
  
  <p>.</p>
  
  <p>My Code</p>
  
  <pre><code>&lt;?php 
  
  include_once("libs/csv2json/CSVParser.php");
  
  $jsonParser = CSVParserFactory::Create("json");
  $path = "uploads/jobs.csv";
  
  //This property will use the first row to convert the results into a
  //json object array
  $jsonParser-&gt;IsFirstRowHeader = true;
  $jobs = $jsonParser-&gt;Parse($path);
  
  $jobs = json_decode($jobs, true);
  
  ?&gt;
  &lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;iFocus - Careers&lt;/title&gt;
  &lt;link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,400,700,300' rel='stylesheet' type='text/css'&gt;
  &lt;script src="js/modernizr.custom.34639.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.accordion.min.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="css/normalize.min.css"&gt;
  &lt;link rel="stylesheet" href="css/styles.css"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div id="header" class="wrapper"&gt;
    &lt;header class="container"&gt;
      &lt;div id="logo"&gt;&lt;a href="index.php"&gt;&lt;img src="img/logo.png" width="185" height="69" alt="ifocus logo"&gt;&lt;/a&gt;&lt;/div&gt;
      &lt;nav id="primaryNav"&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="index.php"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="about_us.php"&gt;About Us&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="case_studies.php"&gt;Case Studies&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="services.php"&gt;Services&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="testimonials.php"&gt;Testimonials&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a class="active" href="careers.php"&gt;Careers&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="contact_us.php"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/nav&gt;
      &lt;div class="clearfix"&gt;&lt;/div&gt;
    &lt;/header&gt;
  &lt;/div&gt;
  &lt;div id="mainBody"&gt;
    &lt;div class="container"&gt;
      &lt;h3&gt;Careers&lt;/h3&gt;
      &lt;h4&gt;iFocus is looking for experienced professionals in the following areas: &lt;/h4&gt;
      &lt;p&gt;Email your resume to jobs@ifocussystec.com&lt;/p&gt;
      &lt;div class="active-jobs"&gt;
  
      &lt;?php $i = 1; ?&gt;
      &lt;?php foreach($jobs as $j): ?&gt;
        &lt;h3 class="accordion" id="nav-section&lt;?php echo $i++; ?&gt;"&gt;&lt;?php echo $j['job_code']." - ".$j['title']; ?&gt;&lt;span&gt;&lt;/span&gt; &lt;/h3&gt;
        &lt;div class="accordion-content"&gt;
          &lt;p&gt;&lt;strong&gt;Relevant Experience:&lt;/strong&gt; &lt;?php echo $j['experience']; ?&gt;&lt;/p&gt;
  
          &lt;p&gt;&lt;strong&gt;Job Description::&lt;/strong&gt;&lt;/p&gt;
          &lt;?php $job_desc = explode("\n", $j['job_desc']);?&gt;
          &lt;ul&gt;
            &lt;?php foreach($job_desc as $jd):?&gt;
            &lt;li&gt;&lt;?php echo $jd; ?&gt;&lt;/li&gt;
            &lt;?php endforeach; ?&gt;
          &lt;/ul&gt;
  
          &lt;p&gt;&lt;strong&gt;Skill Set:&lt;/strong&gt;&lt;/p&gt;
          &lt;?php $skillsets = explode("\n", $j['skillsets']);?&gt;
          &lt;ul&gt;
            &lt;?php foreach($skillsets as $s):?&gt;
            &lt;li&gt;&lt;?php echo $s; ?&gt;&lt;/li&gt;
            &lt;?php endforeach; ?&gt;
          &lt;/ul&gt;
  
          &lt;p&gt;&lt;strong&gt;Key Words:&lt;/strong&gt; &lt;?php echo $j['keywords']; ?&gt;&lt;/p&gt;
        &lt;/div&gt;
        &lt;?php endforeach; ?&gt;
  
  
      &lt;/div&gt;
      &lt;div class="clearfix"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;script type="text/javascript"&gt;
          jQuery(document).ready(function($) {
                  $('.accordion').accordion({
                          defaultOpen: 'nav-section1',
                          cookieName: 'accordion_nav'
                  });
          });
  
          &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Lib Link: <a href="https://github.com/crosbymichael/php-csv-to-xml-json" rel="nofollow">https://github.com/crosbymichael/php-csv-to-xml-json</a></p>
  
  <p>i have tried using <code>"\r\n"</code> but it doesnt give the formating either</p>