<?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: vanilla UTF-8 修正</title> <atom:link href="http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/feed/" rel="self" type="application/rss+xml" /><link>http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/</link> <description>幹壞事是進步最大的原動力</description> <lastBuildDate>Sun, 12 Feb 2012 04:26:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Gea-Suan Lin</title><link>http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/comment-page-1/#comment-214105</link> <dc:creator>Gea-Suan Lin</dc:creator> <pubDate>Sun, 15 Apr 2007 22:00:38 +0000</pubDate> <guid
isPermaLink="false">http://blog.gslin.org/archives/2005/08/16/37/#comment-214105</guid> <description>這... 這篇很舊了啊... 現在的版本應該差很多了吧 :o</description> <content:encoded><![CDATA[<p>這&#8230; 這篇很舊了啊&#8230; 現在的版本應該差很多了吧 :o</p> ]]></content:encoded> </item> <item><title>By: albert</title><link>http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/comment-page-1/#comment-214079</link> <dc:creator>albert</dc:creator> <pubDate>Sun, 15 Apr 2007 13:55:06 +0000</pubDate> <guid
isPermaLink="false">http://blog.gslin.org/archives/2005/08/16/37/#comment-214079</guid> <description>gslin老大，我用你的方法改了，但我发表新讨论时出现如下错误：The error occurred on or near: Data too long for column &#039;Body&#039; at row 1我将数据库改为gb2312.请问这是什么问题造成的？谢谢。</description> <content:encoded><![CDATA[<p>gslin老大，</p><p>我用你的方法改了，但我发表新讨论时出现如下错误：</p><p>The error occurred on or near: Data too long for column &#8216;Body&#8217; at row 1</p><p>我将数据库改为gb2312.</p><p>请问这是什么问题造成的？</p><p>谢谢。</p> ]]></content:encoded> </item> <item><title>By: 装了Vanilla -- 时光漫步</title><link>http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/comment-page-1/#comment-204041</link> <dc:creator>装了Vanilla -- 时光漫步</dc:creator> <pubDate>Mon, 12 Mar 2007 12:38:39 +0000</pubDate> <guid
isPermaLink="false">http://blog.gslin.org/archives/2005/08/16/37/#comment-204041</guid> <description>[...] 后来看这里介绍，好像跟wordpress解决乱码的方法是差不多的。 [...]</description> <content:encoded><![CDATA[<p>[...] 后来看这里介绍，好像跟wordpress解决乱码的方法是差不多的。 [...]</p> ]]></content:encoded> </item> <item><title>By: K2 Forums at Gea-Suan Lin&#8217;s BLOG</title><link>http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/comment-page-1/#comment-1080</link> <dc:creator>K2 Forums at Gea-Suan Lin&#8217;s BLOG</dc:creator> <pubDate>Sun, 19 Feb 2006 13:06:59 +0000</pubDate> <guid
isPermaLink="false">http://blog.gslin.org/archives/2005/08/16/37/#comment-1080</guid> <description>[...] Binary Bonsai (也就是我現在用的這個 Theme K2 的發展團體) 現在是用 Vanilla Forum，我有架過 (在 vanilla UTF-8 修正 這篇)，也用過一陣子，的確不好用，所以他們決定換軟體：vBulletin Donation Drive We&#8217;ve now been using these Vanilla forums for a good while now, and the traffic has skyrocketed way beyond anything I could&#8217;ve hoped or imagined for. [...]</description> <content:encoded><![CDATA[<p>[...] Binary Bonsai (也就是我現在用的這個 Theme K2 的發展團體) 現在是用 Vanilla Forum，我有架過 (在 vanilla UTF-8 修正 這篇)，也用過一陣子，的確不好用，所以他們決定換軟體：vBulletin Donation Drive We&#8217;ve now been using these Vanilla forums for a good while now, and the traffic has skyrocketed way beyond anything I could&#8217;ve hoped or imagined for. [...]</p> ]]></content:encoded> </item> <item><title>By: i.POP.Focus &#187; [Open Source]Vanilla</title><link>http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/comment-page-1/#comment-726</link> <dc:creator>i.POP.Focus &#187; [Open Source]Vanilla</dc:creator> <pubDate>Tue, 20 Dec 2005 15:15:25 +0000</pubDate> <guid
isPermaLink="false">http://blog.gslin.org/archives/2005/08/16/37/#comment-726</guid> <description>[...] 解决中文乱码尝试：  上图为：表 lum_comment 1）还是和wordpress解决4.1.x Mysql数据库中文乱码问题，在installer.php里，找到 mysql_connect 相关的，在它语句下面2处，还是插上 $this &#8211; &gt;query(&#8220;SET NAMES &#8216;utf8&#8217;&#8221;); 但好象就不能安装了，见鬼 2）在Utility.Database.class.php里，$this-&gt;Connection = @mysql_connect($Host, $User, $Password);后面加上$this &#8211; &gt;query(&#8220;SET NAMES &#8216;utf8&#8217;&#8221;); 程序不能运行了。 3）使过了jjgod 说的方法，还是不行啊： settings 乱码的问题，是因为 Vanilla 错误的调用了 PHP 的 htmlentities 函数导致，解决方法是修改 Vanilla 目录下 library/Utility.Constant.class.php 中 return htmlentities($Value, ENT_QUOTES); 为 return htmlentities($Value, ENT_QUOTES, &#8220;UTF-8&#8221;); 4）最终解决方案！ （1）记得在mysql里，把数据库整理成utf-8。和wordpress一样 （2）在修改 library/Utility.Database.class.php里的$this-&gt;Connection = @mysql_connect($Host, $User, $Password);下面加上 @mysql_query(&#8216;SET NAMES UTF8;&#8217;, $this-&gt;Connection); 查看参考 注意：网络上有个 Vanilla 0.9.2的中文语言包，但好象有问题，选择后，发贴内容不会被保存，帖子是空的。 所以，我暂时还是用英文比较妥当。自己慢慢来汉化吧 [...]</description> <content:encoded><![CDATA[<p>[...] 解决中文乱码尝试：  上图为：表 lum_comment 1）还是和wordpress解决4.1.x Mysql数据库中文乱码问题，在installer.php里，找到 mysql_connect 相关的，在它语句下面2处，还是插上 $this &#8211; &gt;query(&#8220;SET NAMES &#8216;utf8&#8217;&#8221;); 但好象就不能安装了，见鬼 2）在Utility.Database.class.php里，$this-&gt;Connection = @mysql_connect($Host, $User, $Password);后面加上$this &#8211; &gt;query(&#8220;SET NAMES &#8216;utf8&#8217;&#8221;); 程序不能运行了。 3）使过了jjgod 说的方法，还是不行啊： settings 乱码的问题，是因为 Vanilla 错误的调用了 PHP 的 htmlentities 函数导致，解决方法是修改 Vanilla 目录下 library/Utility.Constant.class.php 中 return htmlentities($Value, ENT_QUOTES); 为 return htmlentities($Value, ENT_QUOTES, &#8220;UTF-8&#8221;); 4）最终解决方案！ （1）记得在mysql里，把数据库整理成utf-8。和wordpress一样 （2）在修改 library/Utility.Database.class.php里的$this-&gt;Connection = @mysql_connect($Host, $User, $Password);下面加上 @mysql_query(&#8216;SET NAMES UTF8;&#8217;, $this-&gt;Connection); 查看参考 注意：网络上有个 Vanilla 0.9.2的中文语言包，但好象有问题，选择后，发贴内容不会被保存，帖子是空的。 所以，我暂时还是用英文比较妥当。自己慢慢来汉化吧 [...]</p> ]]></content:encoded> </item> <item><title>By: taijie</title><link>http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/comment-page-1/#comment-141</link> <dc:creator>taijie</dc:creator> <pubDate>Thu, 01 Sep 2005 14:47:44 +0000</pubDate> <guid
isPermaLink="false">http://blog.gslin.org/archives/2005/08/16/37/#comment-141</guid> <description>真的改過來啦~
真是有一套，
只是小弟有個疑問，
不能把預設值改掉，而必須要從寫入時來修正編碼嗎~</description> <content:encoded><![CDATA[<p>真的改過來啦~<br
/> 真是有一套，<br
/> 只是小弟有個疑問，<br
/> 不能把預設值改掉，而必須要從寫入時來修正編碼嗎~</p> ]]></content:encoded> </item> <item><title>By: gslin</title><link>http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/comment-page-1/#comment-86</link> <dc:creator>gslin</dc:creator> <pubDate>Tue, 23 Aug 2005 03:12:57 +0000</pubDate> <guid
isPermaLink="false">http://blog.gslin.org/archives/2005/08/16/37/#comment-86</guid> <description>這不是多此一舉，我猜你沒測試過。Database 完全使用預設值時 (latin1)，部分中文字會有問題。</description> <content:encoded><![CDATA[<p>這不是多此一舉，我猜你沒測試過。</p><p>Database 完全使用預設值時 (latin1)，部分中文字會有問題。</p> ]]></content:encoded> </item> <item><title>By: enjoylife</title><link>http://blog.gslin.org/archives/2005/08/16/37/vanilla-utf-8-%e4%bf%ae%e6%ad%a3/comment-page-1/#comment-85</link> <dc:creator>enjoylife</dc:creator> <pubDate>Tue, 23 Aug 2005 02:40:34 +0000</pubDate> <guid
isPermaLink="false">http://blog.gslin.org/archives/2005/08/16/37/#comment-85</guid> <description>你这是多此一举...
晕
数据库本身就支持多国语言....</description> <content:encoded><![CDATA[<p>你这是多此一举&#8230;<br
/> 晕<br
/> 数据库本身就支持多国语言&#8230;.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: blog.gslin.org @ 2012-02-12 17:37:17 -->
