<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.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://www.jackxiang.com/post//</link>
<title><![CDATA[[php_mysql]PHP与Mysql的编码问题终于解决]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sun, 05 Aug 2007 12:07:44 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	经过一天的研究，PHP与Mysql的编码问题终于解决，现将我的研究成果与大家分享：<br/><br/>1）读取mysql前设置编码，代码如下：<br/>mysql_query("SET NAMES 'utf-8'",$database->_resource);<br/>mysql_query("SET CHARACTER SET utf-8",$database->_resource);<br/>但不是总有效，设置gb2312就不行；<br/><br/>2）使用iconv函数转换编码，但是Php默认不支持；<br/><br/>3）使用mb_convert_encoding函数转换编码，有些虚拟主机不支持；<br/><br/>4）使用博大公司写的<a href="http://zeal.newmenbase.net/attachment/chinese.rar" target="_blank">http://zeal.newmenbase.net/attachment/chinese.rar</a>转换编码，可以避免以上出现的问题，为较好的解决方案。 将UTF8转换为GB2312的代码如下：<br/> &nbsp; &nbsp; include("class.Chinese.php");<br/> &nbsp; &nbsp;$chs = new Chinese("UTF8","GB2312",trim($title));<br/> &nbsp; &nbsp;$title = $chs->ConvertIT();
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [php_mysql]PHP与Mysql的编码问题终于解决]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>