title: No hungarian letters with UTF-8 encoding in php
body: <p>I have a problem with my Display datas from Mysql php page. My problem is when I want to display some hungarian specific chars like "á" or "é" they replaced with question marks. I set all of my tables and rows to utf8_hungarian_ci, and the entire table and rows to utf8_unicode_ci, but it doesn't work. A tried in my php code to set this "header(Content-Type: text/html; charset=utf-8)" at the beginning of my php code, but i haven't got any success with that. Can anybody help me? Thank you!
  Edit: The code that I trying to use:</p>
  
  <pre><code>&lt;?php
  header('Content-Type: text/html; charset=utf-8');
  function testfun()
  {
  
  
  $con=mysqli_connect('blabla");
  // Check connection
  if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }
  
  $result = mysqli_query($con,"SELECT * FROM adatok");
  
  echo "&lt;table border='1'&gt;";
  
  $i = 0;
  while($row = $result-&gt;fetch_assoc())
  {
      if ($i == 0) {
        $i++;
        echo "&lt;tr&gt;";
        foreach ($row as $key =&gt; $value) {
          echo "&lt;th&gt;" . $key . "&lt;/th&gt;";
        }
        echo "&lt;/tr&gt;";
      }
      echo "&lt;tr&gt;";
      foreach ($row as $value) {
        echo "&lt;td&gt;" . $value . "&lt;/td&gt;";
      }
      echo "&lt;/tr&gt;";
  }
  echo "&lt;/table&gt;";
  
  mysqli_close($con);
  
  
  }
     testfun();
  
  ?&gt;
  </code></pre>