数据库是 gb2312 的 页面是 utf-8 的 所以要 mysqli_query($connect, ‘set names utf8'); 不过需要注意的是:gb2312 只有7千个汉字,应改用 gbk(两万多汉字)
[quote=引用 2 楼 a1893a8341 的回复:] [quote=引用 1 楼 Sunshine_87 的回复:] 'set names utf8'?不知道好不好使。
浏览器也得设置为gb2312 加一句 header("Content-type: text/html; charset=gb2312");
[quote=引用 1 楼 Sunshine_87 的回复:] 'set names utf8'?不知道好不好使。
'set names utf8'?不知道好不好使。
21,886
社区成员
140,364
社区内容
加载中
试试用AI创作助手写篇文章吧