How to make Magento support some French Characters?

泪湿孤枕 提交于 2019-12-11 02:49:06

问题


I've been trying to make Magento support some french characters but haven't got any success so far.

The French text that I would want to display is:

Vous aimerez peut-être aussi

But somehow, it appears like this:

Its been the same with several other characters. Magento does use UTF-8 by default, but still these characters are not being displayed (surprisingly, because StackOverflow is using UTF-8 and is able to display the characters)
I noticed that ISO-8859-1 is able to display them, tried to change the default character encoding by editing the following file:

app/code/core/Mage/Page/etc/config.xml

And changed the node <default_charset>'s value to ISO-8859-1.

Now Firefox displays the following in Page Info, and the text is still not being displayed properly:

I am using Eclipse to edit the phtml files and often these french texts are being generated by php code.

Any idea what I might be doing wrong?


回答1:


you have wrong encoding either in database or in documents , translation files. Ensure that the encoding is utf-8 all the way in all places that you deal with

  • magento
  • database
  • document encoding while editing


来源:https://stackoverflow.com/questions/7510889/how-to-make-magento-support-some-french-characters

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!