title: Set character set using MySQLi
body: <p>I'm fetching data in Arabic from MySQL tables with MySQLi. So I usually use this in procedural style:</p>
  
  <pre><code>mysql_query("SET NAMES 'utf8'"); 
  mysql_query('SET CHARACTER SET utf8'); 
  </code></pre>
  
  <p>Now I am using the OOP style so I am trying to see if there is something I could set rather than the above?</p>
  
  <p>I only found this in PHP manual so I did it, but what about setting names to UTF8?</p>
  
  <pre><code>$mysqli-&gt;set_charset("utf8");
  </code></pre>