title: php to rtf, é becomes Ã©
body: <p>Using this <a href="http://paggard.com/projects/rtf.generator/" rel="nofollow">rtf class</a>, I see my special characters getting converted, like <code>é becomes \'C3\'A9</code> (that part is probably not the problem)</p>
  
  <p>Once I get it in rtf using php header, the resulting character (é) is seen as <code>Ã©</code>.</p>
  
  <pre><code>header("Content-type: application/rtf; charset=utf-8");
  header("Content-Disposition: attachment; filename=$file_rtf");
  header("Expires: 0");
  header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  header("Cache-Control: private",false); 
  </code></pre>
  
  <p>Strange! My file is saved in utf-8, for information.</p>
  
  <p>I had a similar problem while getting excel, but that is solved using </p>
  
  <pre><code>$text = mb_convert_encoding($text,'utf-16','utf-8');
  </code></pre>
  
  <p>This is not working for rtf. Thanks for any help.</p>
  
  <p>PS. My file is saved with utf-8 encoding thro' DW, and my mysql default charset is also utf-8. I don't have a problem when I display a character directly from the database, but this problem is seen only when I type a special character directly into the page before to use the header.</p>
  
  <p>Cheers.</p>