$this->pdo = new PDO($dsn, $user, $password, array(PDO::ATTR_PERSISTENT => true)); $stmt = $this->pdo->prepare("set names utf8"); $stmt->execute();