PDO查询中文如果乱码,或者搜索不到结果 PDO查询中文如果乱码,或者搜索不到结果,需要加上字符编码, $dsn = 'mysql:host=localhost;dbname=piaopiao;charset=utf8'; 这样就可以了。