用utf8编码的php文件里包含几个include行 ,在客户端IE浏览器访问时,页面头上出现空白.
用utf8编码的php文件里包含几个include行 ,在客户端IE浏览器访问时,页面头上出现空白,
查看,源代码发现,里边添加了几个???...(乱码),?数量和include行数相同.
疑为编码问题,Firefox解释正确,而IE却出现空行显示.
-----------------this is the answer from the W3C------------- http://www.w3.org/International/questions/qa-utf8-bom------------
If you are dealing with a file encoded in UTF-8, your display problems may be caused by the presence of a UTF-8 signature (BOM) that the user agent doesn't recognize.
-------------------------------------------------------------------------------------------------------------------------------
the source:
<?php
include 'config.php';
include 'config1.php';
...
?>
and the IE codesouce:
??<!DOCTYPE html PUBLIC ....../html>
很迷惑,大家,有何方法来避免?