save File XML as UTF 8 with BOM
Posted: Fri Dec 12, 2008 6:56 am
How can i add a BOM signature (EF BB BF in hex) at the top of my file i save with PHP
My Code:
My Code:
Code: Select all
$fp = fopen('test.xml', "w+");
fwrite($fp, $fileXML);
fclose($fp);