PHP+MYSQL乱码有关问题

WBOY
Release: 2016-06-13 12:31:38
Original
856 people have browsed it

PHP+MYSQL乱码问题
我的mysql编码是utf8_bin
页面的编码
用的是zend做开发,zend里面也都设置了PHP页面的编码utf-8
可是查询出来的数据到前台页面都是乱码。
我在连接数据库的PHP文件里加了一句mysql_query("set names 'gb2312'")执行后查询出来的数据可以正常显示了。就是前台页面调取数据库数据都是乱码。希望前辈们能给指点。
我的前台页面使用Dreamweaver写的

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template