0

I have two versions for my store - English and French. And I am doing the translation from English to French in app/locale/fr_FR/Mage_Page.csv

I notice that I have to use some codes for certain French characters, such as En-tête de page for tête de page.

So if I have French words like 100% Magasinage sécurisé, how can use convert it into codes like En-tête de page?

Run
  • 54,938
  • 169
  • 450
  • 748
  • 2
    I'd be surprised if character encoding wouldn't allow you to do this without using the codes. Possible dupicate question: http://stackoverflow.com/questions/7510889/how-to-make-magento-support-some-french-characters – RichardB Jun 22 '14 at 11:10
  • it is already set to `utf-8`. I think it could some bug from Magento... – Run Jun 22 '14 at 14:31
  • I'm not great at character encoding, but there are so many international sites using accents that if it was a Magento bug, it would be pretty well known. Things like your .csv may also have incorrect character encoding. – RichardB Jun 22 '14 at 14:40
  • it has this kind of encoding `Description par défaut`... – Run Jun 22 '14 at 14:48

1 Answers1

1

I think it can come from the encoding of your file Mage_Page.php. If you use linux, I think that you have it in your file's properties and if you use Windows, you can check with notepad++. Richard B. gave a good link that in my opinion might solve the problem. I'm using french on all the magento website that we produce and I do not have any problem like that so it must come from the encoding of your file. One last thing : if your file is utf8 encoded, it means that your text was imported from a different one and editor did what it could but not successfully to change the characters (can happen with text from excel).

Christophe Ferreboeuf
  • 1,048
  • 14
  • 26
  • And you are right - it is the encoding of Mage_Page.csv. I must set it to utf-8. – Run Jun 23 '14 at 18:52