title: MySQL reports wrong character set
body: <p>I have a character encoding problem with MySQL database. It's MySQL server 5.1.72 and PHP 5.3.28. In PHPMyAdmin, I have the following settings:</p>
  
  <p>Server charset: UTF-8 Unicode (utf8)</p>
  
  <p>Server connection collation: utf8_danish_ci</p>
  
  <p>Database collation: utf8_danish_ci</p>
  
  <p>Table collation: uft8_danish_ci</p>
  
  <p>All fields in the table: utf8_danish_ci</p>
  
  <p>Yet, if I do this:</p>
  
  <pre><code>$con = mysqli_connect( $dbhost, $dbuser, $dbpassword, $dbname );
  mysqli_set_charset($con,"utf-8");
  echo mysqli_character_set_name($con);
  </code></pre>
  
  <p>The output is "latin1". My problem is of course, that Danish characters are not displayed correctly.</p>