打算启用feedburner, 结果却发现我的feed死活通过不了validator的检验

Sorry

This feed does not validate.

  • line 167, column 77: ‘utf8′ codec can’t decode bytes in position 10676-10678: invalid data (maybe a high-bit character?) [help]
      根据贡献率的大小,影响南京空气质量的人为因素主要来源是大小工地上的扬尘,特别是一些单位和个人,在运输渣土、沙石、垃圾、灰膏、灰浆等散体、流体时,没有 ...                                                                             ^

In addition, this feed has issues that may cause problems for some users.
We recommend fixing these issues.

  • line 115, column 21: description contains bad characters [help]
    用了这个控件,mmm...没我们原来cai?.Twitter Updates for 2007-07-08                     ^
  • line 130, column 21: content:encoded contains bad characters (2 occurrences) [help]
    用了这个控件,mmm...没我们原来cai?.</div></li><li><span class="aizattos_related_posts_ti ...                     ^
  • line 426, column 7: content:encoded should not contain relative URL references: www.romnation.net/srv/emulators/5/mame/MAME32-v0-90-for-Windows.html [help]
    </p>]]></content:encoded>       ^

用w3c的验证了一下也有这问题,说明的确是我的问题。 :( 该死的Feedburner居然遇到个把非法字符就拒绝添加这个feed, 真是不人性。:(

看来问题主要出在内容里,这就比较麻烦了,因为可能copy/paste各种内容进blog里,我哪里知道什么时候会产生非法的字符?

只好抽了一些时间看了看资料弄了专门fix这个问题的wordpress plugin, 结果问题解决:

Source: http://robertmao.com/feed

Warning

This feed is valid, but may cause problems for some users.
We recommend fixing these problems.

  • line 426, column 7: content:encoded should not contain relative URL references: www.romnation.net/srv/emulators/5/mame/MAME32-v0-90-for-Windows.html [help]
    </p>]]></content:encoded>       ^

还有个警告,是我内容里的一个link没写对导致的。

明天整理一下把这个wordpress plugin给发不出来, 只有几行代码而已,都不好意思拿出来,幸亏我脸皮厚,呵呵。

UPDATED:

发布在我的英文blog中了:A wordpress plugin to fix the invalid UTF-8 data inside the feed

直接下载:Download wordpress plugin to fix the invalid UTF-8 data inside the feed



Leave a Comment

Close
E-mail It