Home >Backend Development >PHP Tutorial > 又是mysql乱码的有关问题

又是mysql乱码的有关问题

WBOY
WBOYOriginal
2016-06-13 12:45:59825browse

又是mysql乱码的问题
在网上查了,然后设置了,重启mysql服务、、进去继续用show variables like “%colla%”;show varables like “%char%”;着两条语句查询一下字符集,显示也这样了,可还是乱码,什么情况?
还有,

mysql_query("set names 'gbk'");//用‘gbk’的时侯显示一串问号,用‘utf8的时候显示乱码,搞不懂’

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