Details
Description
Some moodle files appear to have BOM markers in them. Under linux, they can be seen at the top left of some pages. They look like this:

I've seen them in the 1.9 checkout I've made for testing, in one of the install steps, and on the Network Settings admin page at least. I suspect if there are BOM markers on those files there may be more elsewhere.
Attachments
Issue Links
| This issue has a non-specific relationship to: | ||||
| CONTRIB-3359 | Turnitin adds BOM character into Gradebook export - this seems to cause corruption |
|
|
|
| This issue has been marked as being related by: | ||||
| MDL-10753 | lang/admin.php |
|
|
|
Executing this under Moodle dir:
grep -rl $'\xEF\xBB\xBF' *
should return all the files with the BOM.
Once ignored all the binary files, each text file (php, xml...) should be processed with some thing like:
vim FILE
:set nobomb
(save and exit)
Don't forget to cvs diff FILE to check that only the 1st line (1st character) has changed.
Finally, I've attached one shell script (bom_out.sh - only tested under MacOS X) that will search and destroy all the BOMs under directory where it's executed.
Please, before committing, execute one "cvs diff" to check that only BOMs have been deleted!!
Hope this helps...ciao