PHP Include and accents (They show up as �)

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

    I had the same issue with a website for a French hotel.

    Changing the charset to "ISO-8859-1" instead of "UTF-8" did the trick.

    Example: < form method="post" name="contact" action="send_mail.php" accept-charset="ISO-8859-1" >

提交回复
热议问题