I need to output a file with UTF8 text only without any extra characters or tags.
My code includes source files which have Byte Order Mark bytes since they are UTF-8.
clarification: the main php file for this is saved as utf-8 without BOM so it does enter a BOM bytes, the BOM files only come from included files.
I cannot save the included files without BOM since it will mess my languages display.
How can I supress the BOM bytes ?
I tried
@include_once ('file with BOM"); but it did not work. The BOM is there.
I also tried
ob_start();
@include_once ('file with BOM");
ob_clean();
It does not work also.
What can I do?
Thanks!