Im guessing there's a BOM sitting at the start of the file in front of the <?php tag which is being outputted. You can try using UTF-8 encoding without BOM to see if this fixes it.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.