2010-11-12 85 views

回答

4

寫入文件時,PHP永遠不會自動附加BOM。你將不得不自己添加它:

$filecontents = chr(0xEF).chr(0xBB).chr(0xBF).$mycontents; 
0

它適用於我。謝謝! $file = fopen("arquivos_gerados/teste.html","w"); fwrite($file,chr(0xEF).chr(0xBB).chr(0xBF).$content); fclose($file);

相關問題