add BOM to fix UTF-8 in Excel fputs($fp, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) )); 作者:冯亮 出处:http://fengliang.cnblogs.com/ 能力有限,水平一般。如有错误,欢迎指正