check web url through this service:
https://validator.w3.org/i18n-checker/check
like:
It should show NO BOM.
If you download a file, you can check for the presence of a BOM by doing:
hexdump -n 3 -C filename.jpg
if you see "ef bb bf" you've got a BOM.
to remove a bom, use tail
tail -c +4 bad.jpg > better.jpg
Here's some PHP to test whether the wp-config.php has a BOM:
$contents = file_get_contents(dirname(__FILE__) . '/wp-config.php');
if (substr($contents, 0, 3) == "\xef\xbb\xbf") {
echo 'CONFIG HAS IT!';
}