Home >Backend Development >PHP Tutorial >捞分的进来啊乱码了,该怎么解决

捞分的进来啊乱码了,该怎么解决

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:25:16825browse

捞分的进来啊!!!乱码了
phpadmin 表设置为gb2312,网页里也设置成这个,出现问号怎么回事啊

------解决方案--------------------
文档编码是不是gb2312,设置的charset是不是gb2312
------解决方案--------------------
有不有这句:mysql_query("set names gbk"); 
还有,程序编码是gbk吗?
------解决方案--------------------

探讨
表是utf8-bin
php是header("content_type:text/html;charset=utf8_bin");

表是gbk-bin
php是header("content_type:text/html;charset=gbk_bin");也不行啊
Statement:
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