title: php mysql SET NAMES 'utf8' COLLATE 'utf8_unicode_ci' doesn't work with mysqli
body: <p>I am migrating my site into php mysqli from php mysql_* methods.</p>
  
  <p>I had following code that did the job:</p>
  
  <blockquote>
    <p>mysql_query("SET NAMES 'utf8' COLLATE 'utf8_unicode_ci'");</p>
  </blockquote>
  
  <p>Without this query my string characters (in Georgian language) were written with question marks.
  For example it was written ????????? instead of გამარჯობა</p>
  
  <p>So since it did its job I was happy, but now I cannot do the same with mysqli.</p>
  
  <pre><code>$mysqli = new mysqli("localhost", "root", "", "test");
  $mysqli-&gt;query("SET NAMES 'utf8' COLLATE 'utf8_unicode_ci'");
  </code></pre>
  
  <p>Can anyone please help me out? Thanks.</p>