PHP Include and accents (They show up as �)

后端 未结 5 1588
陌清茗
陌清茗 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:54

    What is the charset of the HTML page? It sounds like the charset of the PHP file and the HTML within it differ. You might want to check out:

    • http://htmlhelp.com/tools/validator/charset.html.en
    • http://www.w3.org/TR/REC-html40/charset.html
    • https://stackoverflow.com/search?q=html+charset

    For more help, please post some code, specifically the doctype which is being output and any calls to PHP charset functions.

提交回复
热议问题