1

Using this help page https://craftcms.com/support/static-translations I've created a fr.php file in a translations folder - and it's working OK. Except when I have "Telephone" => "Téléphone" in the array - the two é get output as black diamonds with a question mark in.

How should I be adding Téléphone in the array so that it outputs correctly?

Many thanks Lee

3

We are in the process of translating one of our client sites into 16 (yes that's 16!) languages and we haven't had any issues with accented characters.

The only thing I can suggest off the top of my head is to ensure you are using UTF-8 character encoding. Pop this in your <head>:

<meta charset="utf-8">

Hope that helps.

| improve this answer | |
  • 1
    I'd also check that when you're saving the fr.php file, make sure you're saving it with a UTF-8 encoding. – Brad Bell Oct 6 '15 at 17:45
  • Thanks Jamie and Brad. Saving the file with UTF-8 encoding fixed it. – user1070143 Oct 6 '15 at 20:30

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.