title: PHP export CSV when data having UTF8 charcters
body: <p>In MySQL I have set my data field type to <code>utf8_bin</code> and i am storing data in Unicode. Texts are being properly displayed in web pages. </p>
  
  <p>I want to generate excel file exporting data from my table to it. The output in <code>.xls</code> and <code>.cvs</code> is - '????'. </p>
  
  <p>I checkout out other answers here, its been referred to use headers: </p>
  
  <p><code>header("content-type:application/csv;charset=UTF-8");</code></p>
  
  <p><a href="https://stackoverflow.com/questions/4348802/how-can-i-output-a-utf-8-csv-in-php-that-excel-will-read-properly"> similar question</a>. But its not working. After using header, in csv Output is - à¤¸à¥‚à¤°à¥à¤¯à¤¾. </p>
  
  <p>Please help. Thanks. </p>