<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[Fix broken UTF8 encoded RSS feeds in php,RSS出现“Input is not proper UTF-8, indicate encoding !”的解决方法。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Wed, 19 Mar 2014 02:14:15 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：输出xml提示：error on line 323 at column 23: Input is not proper UTF-8, indicate encoding !&lt;username&gt;&lt;![CDATA[*这儿有一个隐藏字符*執↘著]]&gt;&lt;/username&gt;，去掉就好了，但是这个是用户的输入。<br/><br/>RSS出现“Input is not proper UTF-8, indicate encoding !”的解决方法：<br/>This page contains the following errors:<br/>error on line 402 at column 25: Input is not proper UTF-8, indicate encoding !<br/>Bytes: 0×07 0×43 0×68 0×61<br/>Below is a rendering of the page up to the first error.<br/><br/>搜索一下，说是内容中有不完整的utf8字符导致xml解析器出错。<br/><br/>根据提示的错误位置，把附近的文字复制到Emeditor中，那个隐藏的不完整字符出现了，Emeditor中是用一个大黑点表示的，删除后把文本复制回去，搞定。<br/>上面这个不是长久办法，最后一老外有一篇文章：<br/>http://www.mybelovedphp.com/2009/07/03/fix-broken-utf8-encoded-rss-feeds-in-php/<br/><textarea name="code" class="php" rows="15" cols="100">
$feed = file_get_contents($feed_url);
 $feed = iconv(&quot;UTF-8&quot;,&quot;UTF-8//IGNORE&quot;,$feed);//这行是关键，一转就转没了。
 $feed = simplexml_load_string($feed);
</textarea><br/><br/><br/>
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Fix broken UTF8 encoded RSS feeds in php,RSS出现“Input is not proper UTF-8, indicate encoding !”的解决方法。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>