PDO Connection


$pdo = new PDO(

Dealt with the weirdest thing today... PDO was storing UTF8 strings oddly in MySQL, but was pulling them and fixing them on the fly (!?) -- Odd... All the things (headers, php.ini, MySQL collation, etc.) were set to UTF8, except for the ;charset=utf8 appended to the PDO connection DSN (which fixed the problem). @see this and this.