Hi all

I have a UK based website that support mutli langual pages and the client is saving some french content via the CMS.

The content is being converted and stored correctly in my database. e.g.:

Cette assurance couvrira l'athlète ayant besoin d’annuler son inscription Sport et se retirer de la course.<br />

Now this is pulling out and displaying everything correctly on my website except the è characters - this is coming out as a question mark in a black diamond character in my source and within the viewable webpage.

However, if a hard code è into my HTML structure and view the page, the character comes out correctly on the page.

My database is MyISAM UTF-8

My website charset is UTF-8

Any thoughts why some htmlentities display and some don't?

Many thanks for reading
kbc

    Are you defining the charset when using htmlentities?

    echo htmlentities($var['text'], ENT_QUOTES, 'utf-8');
      8 days later

      Also make sure your browser is using UTF-8.

        Write a Reply...