<?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[PHP中Notice: iconv(): Unknown error (84) 的解决办法]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Php/Js/Shell/Go]]></category>
<pubDate>Thu, 23 Oct 2014 13:20:19 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	今天用PHP读取一个接口的数据使用了iconv转换字符编码格式，出现Notice: iconv(): Unknown error (84) :<br/><textarea name="code" class="php" rows="15" cols="100">
$this-&gt;debug_show(&quot;客户机命令：&quot;.iconv(&quot;GBK&quot;,&quot;UTF-8&quot;, $this-&gt;in));
</textarea><br/>上面这行摘自：http://jackxiang.com/post/1057/<br/>最后，修改为如下：<br/><textarea name="code" class="php" rows="15" cols="100">
$this-&gt;debug_show(&quot;客户机命令：&quot;.iconv(&quot;GBK&quot;,&quot;utf-8//TRANSLIT//IGNORE&quot;, $this-&gt;in));
</textarea><br/>———————————————————————————————————————————————————<br/>读其官方文档 http://www.php.net/manual/en/function.iconv.php对参数out_charset的解释：<br/>The output charset.<br/>If you append the string //TRANSLIT to out_charset transliteration is activated. This means that when a character can’t be represented in the target charset, it can be approximated through one or several similarly looking characters. If you append the string //IGNORE, characters that cannot be represented in the target charset are silently discarded. Otherwise, str is cut from the first illegal character and an E_NOTICE is generated.<br/><br/>大概的意思就是：<br/>如果你加上 //TRANSLIT 到out_charset 的参数后面，意味着如果找不到目标编码，则程序会去找与其相近的编码。如果你加的是//IGNORE，则不会去找相近的编码，而且只要有一个字符是程序无法识别的则将会报错。<br/>根据上面的解释我将代码<br/>iconv(&#039;gb2312&#039;,&#039;utf-8&#039;, serialize($storeData));<br/>改为 <br/>iconv(&#039;gb2312&#039;,&#039;utf-8//TRANSLIT//IGNORE&#039;, serialize($storeData));<br/><br/>这样就ok了！<br/><br/>来自：http://www.tonitech.com/822.html
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] PHP中Notice: iconv(): Unknown error (84) 的解决办法]]></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>