title: How to convert a CSV file using a PHP script
body: <p>I need to convert a CSV file to UTF-8 and rename it using a PHP script.</p>
  
  <p>The following code worked on my PC but now i need to do this on a server as a CRON task</p>
  
  <p><code>iconv -f UTF-16LE -t UTF-8 OLD-FILE.csv &gt; NEW-FILE.csv</code></p>
  
  <p>Anyone know the equivalent in PHP. Thanks a lot.</p>