PHP Include and accents (They show up as �)

后端 未结 5 1561
陌清茗
陌清茗 2020-12-17 23:08

I\'m using PHP include to include a PHP file that has HTML in it. some of the content has french accents and these show up as � on the site. How can this be solved?

5条回答
  •  囚心锁ツ
    2020-12-17 23:59

    If switching the charset doesn't fix it, you can use entities. é for é, ô for ô and so on

    P.S. 'Il a une erreur avec vôtre email' -> You should say 'Il y a', it's votre not vôtre and email can be translated to 'courriel' :)

提交回复
热议问题