title: PHP - displaying utf-8
body: <p>I have the following UTF-8 data in my database:</p>
  
  <p><em>ããƒ€ãƒ³ãƒ’ãƒ«</em></p>
  
  <p>In japanese:</p>
  
  <p><em>ダンヒル</em></p>
  
  <p>The field and the database are set to utf_8_general_ci.
  I can't figure out how to display the proper japanese characters in my html. Here's what I did so far with no success:</p>
  
  <pre><code>&lt;?php
  mb_internal_encoding('UTF-8');
  mb_http_output('UTF-8');
  header('Content-Type: text/html; charset=UTF-8');
  ?&gt;
  </code></pre>
  
  <p>Also, in my html header, I set the charset to utf-8:</p>
  
  <pre><code>&lt;meta charset="UTF-8"&gt;
  </code></pre>
  
  <p>Database connection is mysqli, <code>set_charset</code> is set to utf-8.</p>
  
  <p>Note that using this <a href="http://software.hixie.ch/utilities/cgi/unicode-decoder/utf8-decoder" rel="nofollow noreferrer">tool</a>, I managed to encode my string to the proper japense characters.</p>
  
  <p>Any help, would be appreciated, thanks!</p>