RSS源 地址:http://video.google.cn/?cat=169&output=rss使用curl读取后再使用 SimpleXmlElement()解析,其他的都行,这个就提示下面的,我看了一下页面也是utf-8编码的,提示错误:
Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 4: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xCA 0xD3 0xC6 0xB5 in D:\www\rss\runrss.php on line 192Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]: (CSR.data.webserver_sws.UserRequest.data.vsfe.VideoSearchCommand.q) ?> - Google  in D:\www\rss\runrss.php on line 192Warning:  SimpleXMLElement::__construct() [simplexmlelement.--construct]:                                                                                ^ in D:\www\rss\runrss.php on line 192Fatal error:  Uncaught exception 'Exception' with message 'String could not be parsed as XML' in D:\www\rss\runrss.php:192
Stack trace:
#0 D:\www\rss\runrss.php(192): SimpleXMLElement->__construct('<?xml version="...')
#1 D:\www\rss\runrss.php(268): runss->read_rss('http://video.go...')
#2 D:\www\rss\runrss.php(333): runss->push_rss()
#3 {main}
  thrown in D:\www\rss\runrss.php on line 192大家帮忙看一下哪里错了吧,谢谢。