<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dominic.Xu&#039;s 博客 &#187; weblinks</title>
	<atom:link href="http://xuplus.com/article/tag/weblinks/feed" rel="self" type="application/rss+xml" />
	<link>http://xuplus.com</link>
	<description>Web 2.0 生活</description>
	<lastBuildDate>Wed, 24 Aug 2011 05:26:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Xoops中weblinks模组1.13版简体中文UTF8字符集乱码解决及语言包</title>
		<link>http://xuplus.com/article/2007/12/a76.html</link>
		<comments>http://xuplus.com/article/2007/12/a76.html#comments</comments>
		<pubDate>Wed, 26 Dec 2007 13:10:00 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[XOOPS]]></category>
		<category><![CDATA[utf8]]></category>
		<category><![CDATA[weblinks]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://xuplus.com/article/2007/12/a76.html</guid>
		<description><![CDATA[今天xoops.org.cn上有人说道weblinksV1.13版本在用UTF8字符集的时候碰到乱码和RSS、ATOM输出乱码的问题，发现手上的一个小东西也存在这样的问题，虽然weblinks模组现在http://ohwada.net推出了1.82.1版本的weblinks模组，但需要装他们的happy_linux模组，而且目前还没有一个简体中文语言包，也就不想升级到新的weblinks模组了。在培训的间隙，花了点时间分析了以下问题，然来是从简体中文gb2312字符集语言包转换成UTF8语言包时候，虽然可以使用了，但是缺少了关键的UTF8转换处理函数（UTF8是不需要再转换的），导致本身就是utf8的字符串被二次编码，就导致乱码了。 解决办法是在weblinks_language_convert.php文件中加入utf8转换函数。需要清除cache目录中对应的缓存文件。 &#160; //Add By Xuyong //utf8 字符集不需要转化 //End Add function convert_from_utf8($text) { &#160;&#160;&#160; return ($text); } function convert_to_utf8($text) { &#160;&#160;&#160; return ($text); } 完整utf8语言包： 标签： utf8, weblinks, 乱码]]></description>
			<content:encoded><![CDATA[<p>今天<a href="http://xoops.org.cn" target="_blank">xoops.org.cn</a>上有人说道weblinksV1.13版本在用UTF8字符集的时候碰到乱码和RSS、ATOM输出乱码的问题，发现手上的一个小东西也存在这样的问题，虽然weblinks模组现在<a title="http://ohwada.net" href="http://ohwada.net">http://ohwada.net</a>推出了1.82.1版本的weblinks模组，但需要装他们的happy_linux模组，而且目前还没有一个简体中文语言包，也就不想升级到新的weblinks模组了。在培训的间隙，花了点时间分析了以下问题，然来是从简体中文gb2312字符集语言包转换成UTF8语言包时候，虽然可以使用了，但是缺少了关键的UTF8转换处理函数（UTF8是不需要再转换的），导致本身就是utf8的字符串被二次编码，就导致乱码了。</p>
<p>解决办法是在weblinks_language_convert.php文件中加入utf8转换函数。需要清除cache目录中对应的缓存文件。</p>
<p>&#160;</p>
<blockquote><p>//Add By Xuyong      <br />//<a href="http://xuplus.com/article/tag/utf8" class="st_tag internal_tag" rel="tag" title="标签 utf8 下的日志">utf8</a> 字符集不需要转化       <br />//End Add       <br />function convert_from_utf8($text)       <br />{       <br />&#160;&#160;&#160; return ($text);       <br />}       <br />function convert_to_utf8($text)       <br />{       <br />&#160;&#160;&#160; return ($text);       <br />} </p>
<p>完整utf8语言包：<iframe style="border-right: #dde5e9 1px solid; padding-right: 0px; border-top: #dde5e9 1px solid; padding-left: 0px; padding-bottom: 0px; margin: 3px; border-left: #dde5e9 1px solid; width: 240px; padding-top: 0px; border-bottom: #dde5e9 1px solid; height: 26px; background-color: #ffffff" marginwidth="0" marginheight="0" src="http://cid-2b707ffec38c35d2.skydrive.live.com/embedrow.aspx/Public/%e7%bd%91%e7%bb%9c%e5%85%b1%e4%ba%ab/weblinksv1.13_schinese_utf8.rar" frameborder="0" scrolling="no"></iframe></p>
</blockquote>

	标签： <a href="http://xuplus.com/article/tag/utf8" title="utf8" rel="tag">utf8</a>, <a href="http://xuplus.com/article/tag/weblinks" title="weblinks" rel="tag">weblinks</a>, <a href="http://xuplus.com/article/tag/%e4%b9%b1%e7%a0%81" title="乱码" rel="tag">乱码</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/12/a76.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

