I am trying to, simply put, remove a hidden zero-width-line-break character (U+FEFF) in my script. The webpage that it has appeared on is at http://cynicode.co.uk (Please no
Here is a solution to a similar issue: Extra BOM character in HTML invalidating DOCTYPE tag
Basically the source of the issue are PHP files encoded in UTF8 with BOM
, encoding them in UTF-8 without BOM
solves the issue.
Some of your .php
files (probably ./functions/page.php
contains Byte Order Mark
. If you are using some IDE, check this file's encoding properties and with luck you will be able to remove it.
Edit If you use *nix, Elegant way to search for UTF-8 files with BOM? should help.