RSS文件中编码错误的字符


Bad encoded chars in RSS file

我的RSS http://integralsport.com/rss.php?discussions不能与Netvibes一起使用,但可以与其他RSS阅读器(如Google阅读器)一起使用。

在W3验证器的帮助下,我发现了几个特殊字符http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fintegralsport.com%2Frss.php%3Fdiscussions

我怎样才能正确地编码它们?我尝试了几种方法('x90表示法,直接str_replace),但它们都不起作用。

您可以尝试将文档转换为UTF-8并运行

htmlentities($description, ENT_COMPAT, 'UTF-8');

在输出项目描述时(title也是如此)

用CDATA标签将文本换行:

<![CDATA[ Héllo world ]]>