title: Reading UNICODE CSV using PHP
body: <p>I am facing problem on reading unicode characters from CSV file using PHP.</p>
  
  <p>Find below is the screenshot of the UNICODE csv file.</p>
  
  <p><img src="https://i.stack.imgur.com/WXERl.png" alt="enter image description here"></p>
  
  <p>The PHP code I use is as below.</p>
  
  <pre><code>$delimiter = ",";
  $row = 1;
  $handle = fopen($filePath, "r");
  while (($data = fgetcsv($handle, 1000, $delimiter)) !== FALSE) {
    $num = count($data);
    $row++;
    for ($c=0; $c &lt; $num; $c++) {
      echo $data[$c];
    }
  }
  fclose($handle);
  </code></pre>
  
  <p>For the above code I get the below as output in chrome browser.  It has junk characters.</p>
  
  <p><img src="https://i.stack.imgur.com/VkAGP.png" alt="enter image description here"></p>
  
  <p>But if I add a newline character on the echo statement as below it gives the correct output.</p>
  
  <pre><code>echo $data[$c]."\n";
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/RGnEV.png" alt="enter image description here"></p>
  
  <p>Why it behaves like this?  I do not want to append a newline like this.</p>