UTF-8 文件BOM的问题求助

用PHP生成UTF-8格式的XML文件本身无bom,但是,如另存到本地就自动加上了BOM,不知道为什么,请高手指点。下面是代码:

header( 'Content-Description: File Transfer' );
header( 'Content-Disposition: attachment; filename='.$filename );
header( 'Content-Type: text/xml; charset=utf-8', true );
readfile($filename);
exit();

作者: 陈华   发布时间: 2011-10-15

有人不,

在线等~~

作者: 陈华   发布时间: 2011-10-15