Thinkphp success跳转非法字符怎么回事

2025-05-08 23:44:45
推荐回答(3个)
回答1:

用editplus 另存为,然后选 utf-8编码。。。如果用记事本写的,很容易就会出这方面的故障。。

回答2:

TP默认已经设置好字符集,所以不用再设置

header("Content-Type:text/html; charset=utf-8");

mysql_query("set names 'utf8'");
去掉

回答3:

检查一下你文件的编码