|
数据库插入数据,中文乱码?
我的mysql数据库都设成gb2312了,所有的网页编码也是gb2312
但插入进去的中文还是乱码
我把database.php里面的
$db['default']['char_set'] = "gb2312";
$db['default']['dbcollat'] = "gb2312_general_ci";
结果错误提示:
A Database Error Occurred
Unable to set client connection character set: gb2312
现在改怎么做?大家帮我看看,在线等!谢谢 |
|