"set names utf8")); return $pdo; }catch (PDOException $e){ writeLog('new PDO failed:'.$e->getMessage()); } }