首页 > 其他 > 详细

utf-8检测

时间:2014-12-16 18:56:50      阅读:268      评论:0      收藏:0      [点我收藏+]

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /.../vhindex.php:1) in /.../vhindex.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /.../vhindex.php:1) in /.../vhindex.php on line 2

这样的错误,说是啊session.start()前已经有输出,用编辑器打,前面明明什么都没有。

 

我试过很多方法都不行,后来网上搜到使用UltraEdit编辑器(很好用的一个编辑器,网上多的是,自己下去),打开高级----配置----Unicode/utf-8 检测,把自动检测UTF-8文件,自动检测没有BOM的Unicode文件等前面的勾全去掉,然后你再打开那个文件,就会发觉“锘 ”这个字符出现了,删除就OK了。

 

“锘 ”这个字符,在index.php和config.php都有,因此修改后,就没这个错了,能够正常登陆后台了

utf-8检测

原文:http://www.cnblogs.com/jly553/p/4167558.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!