Home  >  Article  >  Backend Development  >  页面编码替GB2312,提交数据入库成乱码了

页面编码替GB2312,提交数据入库成乱码了

WBOY
WBOYOriginal
2016-06-13 11:32:35948browse

页面编码为GB2312,提交数据入库成乱码了
页面是GB2312的
入库的时候我加入了
mysql_query("set names 'gbk'")or die("设置字符库失败"); 
输出还是乱码,有没有在不调整页面编码模式的基础下其他的解决方法?

乱码 mysql
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