开发者

Convert html entities into charactes problem

link

Im having trouble converting the html entites into html characters, (&# 8217;) i have tried using al the different php functions (html_entity_decode, htmlspecial characters etc...) None seem to b开发者_如何学Ce working, any ideas what function i need to use?

Thank you!


Your problem isn't that the characters are not decoded correctly, but that the browser is misinterpreting the decoded characters.

As the page is encoded using UTF-8, you need to specify that in the header:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜