I am getting a strange whitespace character when using a different language.

All languages use the same templates/database/plugins etc. But when I go to any other language except the default I get a whitespace character before the

I have no idea what this is coming form. Its there when I disable all plugins and use a blank template.

Screenshot of whitspace

  • Maybe it's coming from the other language's public index.php files?
    – Brad Bell
    Aug 6 '15 at 18:53
  • Afraid not, I have removed all trailing whitespace.
    – Martin
    Aug 7 '15 at 8:06
  • Found issue. The translation files were saved with encoding utf-8 with BOM
    – Martin
    Aug 7 '15 at 11:14
  • Ahh... nice catch!
    – Brad Bell
    Aug 7 '15 at 18:55

I finally found what the problem was.

The translations files (/craft/translations/de.php) were encoded as "UTF-8 with BOM" I opened these files in Sublime text and saved them as regular old UTF-8, which fixed the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.