title: HTML Table to *.xls encoding problems
body: <p>My export script:</p>
  
  <pre><code>if($_POST){
      $file = 'FKDB_XLS';
      $filename = $file."_".date("Y-m-d_H-i",time()); 
      header("Content-type: application/vnd.ms-excel; charset=utf-8"); // dunno if the charset does anything for this application type..
      header("Content-Disposition: attachment; filename=$filename");
      echo stripslashes($_SESSION['item']); unset($_SESSION['item']);
      exit;
  }
  </code></pre>
  
  <p>Basicly, it just turns HTML (<code>$_SESSION['item']</code> as <code>&lt;table&gt;{rows}&lt;/table&gt;</code>) into *.xls and allows Excel to draw tables from that data, as most of you know, probably.</p>
  
  <p>The problem is, when opened in Excel, everything's OK, except... all the values are written incorrectly, with all the <code>Ä, Å†Å</code> and so on instead of 'Ā' or so, again. </p>
  
  <p>What should I do to prevent that?</p>
  
  <p>Thanks in advance!</p>