mysql - phpmyadmin乱码?编码设置都是utf8,不知道怎么回事?
PHP中文网
PHP中文网 2017-04-17 13:02:13
0
3
398

在phpmyadmin修改添加的字符,使用phpmyadmin查看时字符正常,通过php取出来显示就是乱码(显示?号),同时通过php插入的字符,使用phpmyadmin查看时乱码,php取出来显示却正常。html的meta,以及php.ini配置文件都是设置的utf8编码,不知道这是怎么回事?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
巴扎黑

Check the character set used by your php to connect to the database. The problem should be here.

Ty80

1. Page document encoding
2. Database encoding
3. The encoding used when connecting to the database (mysql_query(xxxxxxx) here)

洪涛

Mine is also set to gb2312 and it displays normally in phpmyadmin, but when read and displayed in Dreamweaver? The number is garbled, please solve it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!