脚本宝典收集整理的这篇文章主要介绍了php – HTML文档的字符编码未声明为codeigniter,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters From outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer PRotocol.
在第一次访问时,页面显示正常,只是一条消息“guimbu”.如果刷新页面,则会在清除浏览器历史记录之前显示错误.
这仅在第二次页面查看后发生.看一看:http://guimbu.com/soon
>我刚刚用Sublime打开了所有文件并保存到UTF-8;两次.
>我刚试过所有charset元标记;
>所有页面都会出现这种情况,包括这个简单的页面;
我的autoload.PHP有这个:
$autoload['packages'] = array(); $autoload['libraries'] = array('session','database','firePHP','auth'); $autoload['helPEr'] = array('url','LOG_helper','api_helper','string_helper'); $autoload['config'] = array('ci_opauth','rest','ci_auth'); $autoload['language'] = array(); $autoload['model'] = array();
我该如何调试这个问题?
更新:
@sudhir,谢谢你的回答,但我多次尝试过.实际上源代码只是:
<!DOCTYPE html> <head> <title>guimbu</title> <Meta content="text/html;charset=utf-8" http-equiv="Content-type"> <Meta content="utf-8" http-equiv="encoding"> </head> <body> guimbu =) </body> </html>
并且在第二次页面视图后错误仍然存在= /
会议可能有问题吗?
更新可能性:
以上是脚本宝典为你收集整理的php – HTML文档的字符编码未声明为codeigniter全部内容,希望文章能够帮你解决php – HTML文档的字符编码未声明为codeigniter所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。