Character encoding for French Accents

大憨熊 提交于 2019-11-30 17:38:27

If intérêt shows up as intérêt you likely (i.e. short of corruption due to double encoding) have UTF-8 encoded text being shown up as if it were ISO-8859-1.

Make sure the headers are correctly formed and present the content as being UTF-8 encoded.

Wilbo Baggins

First of all, make the charset in the header UTF8 again.

In your page, use utf8_encode() where appropriate to make sure values coming from a database or external files are properly encoded (try to set the encoding of the fields in your database to UTF8 as well)

Also, take a look at the htmlentities() function to parse special characters to html entities which may solve encoding issues as well.

All other languages except French work fine for me by default

In my /fr/messages.php file I was able to resolve this with

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