title: UTF8 lithuanian characters unrecognized in MySQL database
body: <p>I have well known but quite difficult to sort out problem here. And yes I was searching on forum but those threads are old enough so I decided to create new post.
  So I built a website using WP and included html FORM in one page. When user fills the form (in his/her language) the values of the fields' go into MySQL database table reg_form.</p>
  
  <p>Everything works, the values are saved, BUT some characters (specific in that language) are not recognized. I tried a lot of different methods to solve this, but nothing can help.</p>
  
  <p>The strangest thing is that if you look at WordPress tables you can find those specific characters are recognizable but not in reg_form table which I created.</p>
  
  <p>I was trying to solve this problem and finally I decided to approach in somehow ridiculous way. I created NEW database, new tables, installed new wordpress, created new form etc.</p>
  
  <p><strong>That‘s what I was doing:</strong></p>
  
  <p>I used this suggestion first:
  <a href="http://tympanus.net/codrops/2009/08/31/solving-php-mysql-utf-8-issues/" rel="nofollow">http://tympanus.net/codrops/2009/08/31/solving-php-mysql-utf-8-issues/</a></p>
  
  <p>Yes, my files are saved using UTF8 encoding (without BOM). Yes, meta tags are ok. Yes, the FORM uses accept-charset='UTF-8'. Yes, all tables in database use UTF8. Yes, server, database and tables collation is the same “utf8_general_ci”. </p>
  
  <p>Then I tried to insert in my code this:</p>
  
  <pre><code>$conn = mysql_connect($server, $username, $password);
  
  mysql_set_charset("UTF8", $conn);
  </code></pre>
  
  <p>Then I tried this suggestion
  link here: <em>akrabat.com/php/utf8-php-and-mysql/</em></p>
  
  <p>Then I tried to set Apache's AddDefaultCharset in .htaccess file using this link here: <em>httpd.apache.org/docs/2.0/mod/core.html#AddDefaultCharset</em></p>
  
  <p>BUT… still the problem remains. I can’t see those specific characters properly – only weird hieroglyphic.</p>