title: PHP PDO: charset, set names?
body: <p>I had this previously in my normal mysql_* connection:</p>
  
  <pre><code>mysql_set_charset("utf8",$link);
  mysql_query("SET NAMES 'UTF8'");
  </code></pre>
  
  <p>Do I need it for the PDO? And where should I have it?</p>
  
  <pre><code>$connect = new PDO("mysql:host=$host;dbname=$db", $user, $pass, array(PDO::ATTR_ERRMODE =&gt; PDO::ERRMODE_EXCEPTION));
  </code></pre>