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

WBOY
Release: 2016-06-13 11:32:35
Original
947 people have browsed it

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

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