title: how can export csv file , charset utf-8 instead utf-8 without BOM in php?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5601904/encoding-a-string-as-utf-8-with-bom-in-php">Encoding a string as UTF-8 with BOM in PHP</a>  </p>
  </blockquote>
  
  
  
  <p>i can export csv file from php with this code</p>
  
  <pre><code>header('Content-Type: text/csv; charset=utf-8');
  header('Content-Disposition: attachment; filename=data.csv');
  
  $output = fopen('php://output', 'w');
  </code></pre>
  
  <p>but this code create file with charset <code>utf-8 without BOM</code> but i need charset <code>utf-8</code>.<br>
  is way for this problem?</p>