1
bixuehujin 2012-11-21 17:19:52 +08:00
难道是数据库与PHP脚本编码不匹配?
|
2
wuxiaolin OP @bixuehujin 肯定一致的
|
3
linlinqi 2012-11-21 17:36:51 +08:00 1
创建DB对象的时候得把编码写上,例如
$DB = new PDO("mysql:dbname=dbname", "user", "password", array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'")); |