PHPWEB编程IE浏览器乱码问题
header("Content-Type: text/html; charset='utf8'");
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset='utft'\">";
把上面两句加php代码中,在Chrome、Firefox、Safari浏览器中正常,在IE中乱码。
已知我的IE浏览器默认是gb2312编码,把上面的utf8改为gb2312,即:
header("Content-Type: text/html; charset='gb2312'");
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset='gb2312'\">";
在IE中仍然乱码。
请教各位大神,此问题如何破?
多谢。