<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: php5的simplexml解析错误</title>
	<atom:link href="http://www.ooso.net/archives/273/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ooso.net/archives/273</link>
	<description>Linux + Apache + Mysql + Php + Flash</description>
	<lastBuildDate>Thu, 09 Sep 2010 12:42:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: lugal</title>
		<link>http://www.ooso.net/archives/273/comment-page-1#comment-5127</link>
		<dc:creator>lugal</dc:creator>
		<pubDate>Wed, 07 Mar 2007 10:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/273#comment-5127</guid>
		<description>不喜欢用别人的东西，问题已经解决，参照这个修改的
http://minutillo.com/steve/weblog/2004/06/17/php-xml-and-character-encodings-a-tale-of-sadness-rage-and-data-loss

他也是处理GB2312，BIG5时的问题。他有中文BLOG，不过BLOG上的代码不能准确显示[我的是Firefox]，所以给的英文的帖子链接。</description>
		<content:encoded><![CDATA[<p>不喜欢用别人的东西，问题已经解决，参照这个修改的<br />
<a href="http://minutillo.com/steve/weblog/2004/06/17/php-xml-and-character-encodings-a-tale-of-sadness-rage-and-data-loss" rel="nofollow">http://minutillo.com/steve/weblog/2004/06/17/php-xml-and-character-encodings-a-tale-of-sadness-rage-and-data-loss</a></p>
<p>他也是处理GB2312，BIG5时的问题。他有中文BLOG，不过BLOG上的代码不能准确显示[我的是Firefox]，所以给的英文的帖子链接。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volcano</title>
		<link>http://www.ooso.net/archives/273/comment-page-1#comment-3836</link>
		<dc:creator>volcano</dc:creator>
		<pubDate>Thu, 25 Jan 2007 13:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/273#comment-3836</guid>
		<description>有用过XML_RSS,但是没有深入. 我估计你可能做的是聚合之类的代码,所以会有这样的困扰. 目前我做的东东暂时没有这样的需求,因此解决方案也是相对的简单. 

但是现在成熟的php聚合程序不少,它们应当也有类似的问题处理,你不妨找来参考一下.</description>
		<content:encoded><![CDATA[<p>有用过XML_RSS,但是没有深入. 我估计你可能做的是聚合之类的代码,所以会有这样的困扰. 目前我做的东东暂时没有这样的需求,因此解决方案也是相对的简单. </p>
<p>但是现在成熟的php聚合程序不少,它们应当也有类似的问题处理,你不妨找来参考一下.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lugal</title>
		<link>http://www.ooso.net/archives/273/comment-page-1#comment-3835</link>
		<dc:creator>lugal</dc:creator>
		<pubDate>Thu, 25 Jan 2007 05:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/273#comment-3835</guid>
		<description>......那你这些 codes 就只能读一个类型的feed了？这个我也试过了。

你试过 php PEAR 里面的 XML_RSS 吗？ 这个可能需要安装 PEAR 和 XML_PARSE package.
在 XML_PARSE package 程序文件中就可以设置 vali dencoding. 但是我这边可以读出BIG5 和 GBK 的 feed ，就是读GB2313的feed时会出错。不知道是不是操作系统的问题，我用的是UTF-8的windows professional SP2。</description>
		<content:encoded><![CDATA[<p>&#8230;&#8230;那你这些 codes 就只能读一个类型的feed了？这个我也试过了。</p>
<p>你试过 php PEAR 里面的 XML_RSS 吗？ 这个可能需要安装 PEAR 和 XML_PARSE package.<br />
在 XML_PARSE package 程序文件中就可以设置 vali dencoding. 但是我这边可以读出BIG5 和 GBK 的 feed ，就是读GB2313的feed时会出错。不知道是不是操作系统的问题，我用的是UTF-8的windows professional SP2。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: volcano</title>
		<link>http://www.ooso.net/archives/273/comment-page-1#comment-3832</link>
		<dc:creator>volcano</dc:creator>
		<pubDate>Thu, 25 Jan 2007 04:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/273#comment-3832</guid>
		<description>是这样,我之前就已经知道了feed的encoding,所以直接进行了转码.用php的iconv转换编码比较容易:

string iconv ( string in_charset, string out_charset, string str )

代码:
echo iconv(&quot;UTF-8&quot;, &quot;GBK&quot;, &quot;我是UTF-8的编码的字符串&quot;);</description>
		<content:encoded><![CDATA[<p>是这样,我之前就已经知道了feed的encoding,所以直接进行了转码.用php的iconv转换编码比较容易:</p>
<p>string iconv ( string in_charset, string out_charset, string str )</p>
<p>代码:<br />
echo iconv(&#8220;UTF-8&#8243;, &#8220;GBK&#8221;, &#8220;我是UTF-8的编码的字符串&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lugal</title>
		<link>http://www.ooso.net/archives/273/comment-page-1#comment-3831</link>
		<dc:creator>lugal</dc:creator>
		<pubDate>Thu, 25 Jan 2007 03:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/273#comment-3831</guid>
		<description>Hi, 我也遇到这个问题了
你所谓的 iconv 转换编码如何实现？
是不是每次抓回来的feed包先检测 encoding ?那还不是会出错吗？</description>
		<content:encoded><![CDATA[<p>Hi, 我也遇到这个问题了<br />
你所谓的 iconv 转换编码如何实现？<br />
是不是每次抓回来的feed包先检测 encoding ?那还不是会出错吗？</p>
]]></content:encoded>
	</item>
</channel>
</rss>
