1

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

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

1 Answer 1

3

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 and acknowledge you have read our privacy policy.

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