<?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>「快快樂樂學 Python &#8211; 由 Ferret 與 PyLucene 談起」的迴響</title>
	<atom:link href="http://blog.dragon2.net/2006/11/14/392.php/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.dragon2.net/2006/11/14/392.php</link>
	<description>clsung&#039;s blog site</description>
	<lastBuildDate>Wed, 26 Oct 2011 00:09:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>由：clsung</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-121007</link>
		<dc:creator>clsung</dc:creator>
		<pubDate>Sun, 15 Feb 2009 06:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-121007</guid>
		<description>啊？什麼文件？</description>
		<content:encoded><![CDATA[<p>啊？什麼文件？</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Clarence</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-120980</link>
		<dc:creator>Clarence</dc:creator>
		<pubDate>Fri, 13 Feb 2009 07:35:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-120980</guid>
		<description>請問可不可以讓我下載那個文件，讓我離線時也可以看，謝謝！</description>
		<content:encoded><![CDATA[<p>請問可不可以讓我下載那個文件，讓我離線時也可以看，謝謝！</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Hi! I'm clsung</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-117256</link>
		<dc:creator>Hi! I'm clsung</dc:creator>
		<pubDate>Thu, 10 Apr 2008 06:34:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-117256</guid>
		<description>&lt;strong&gt;PyLucene Win32 on googlecode...&lt;/strong&gt;

......</description>
		<content:encoded><![CDATA[<p><strong>PyLucene Win32 on googlecode&#8230;</strong></p>
<p>&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Hi! I'm clsung</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-109041</link>
		<dc:creator>Hi! I'm clsung</dc:creator>
		<pubDate>Fri, 18 May 2007 02:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-109041</guid>
		<description>&lt;strong&gt;快快樂樂學 Ruby - 再談 Ferret...&lt;/strong&gt;

這只是為了要呼應之前的舊文章&#8230;

話說昨天早上到了實驗室，發現 b6s 前一晚留給我有關 Ferret 的訊息。兩點，第一是 lukhnos實作了 Ferret 處理中文的方法，在這裡。當然，處理中文很重要....</description>
		<content:encoded><![CDATA[<p><strong>快快樂樂學 Ruby &#8211; 再談 Ferret&#8230;</strong></p>
<p>這只是為了要呼應之前的舊文章&#8230;</p>
<p>話說昨天早上到了實驗室，發現 b6s 前一晚留給我有關 Ferret 的訊息。兩點，第一是 lukhnos實作了 Ferret 處理中文的方法，在這裡。當然，處理中文很重要&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：qrtt1</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-55260</link>
		<dc:creator>qrtt1</dc:creator>
		<pubDate>Thu, 07 Dec 2006 07:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-55260</guid>
		<description>如果在linux下可以這樣執行
LC_ALL=zh_TW.utf8 python script.py
因為你除了定義code encoding之外
python執行時的自動編碼會使用環境變數裡的設定
所以, 如果你預設非utf8時, 
他就會試著轉成你環境變數中的編碼
但是其他編碼的set似乎都比unicode小:)
只要對應不到就會出包了</description>
		<content:encoded><![CDATA[<p>如果在linux下可以這樣執行<br />
LC_ALL=zh_TW.utf8 python script.py<br />
因為你除了定義code encoding之外<br />
python執行時的自動編碼會使用環境變數裡的設定<br />
所以, 如果你預設非utf8時,<br />
他就會試著轉成你環境變數中的編碼<br />
但是其他編碼的set似乎都比unicode小:)<br />
只要對應不到就會出包了</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：clsung</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-52796</link>
		<dc:creator>clsung</dc:creator>
		<pubDate>Mon, 27 Nov 2006 00:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-52796</guid>
		<description>To yungyuc ：
謝謝 :)</description>
		<content:encoded><![CDATA[<p>To yungyuc ：<br />
謝謝 <img src='http://blog.dragon2.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>由：yungyuc</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-52284</link>
		<dc:creator>yungyuc</dc:creator>
		<pubDate>Fri, 24 Nov 2006 15:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-52284</guid>
		<description>我想 Python 的 unicode 物件沒存 UTF-*，而是直接存 code point (refer to http://effbot.org/zone/unicode-objects.htm and http://docs.python.org/lib/encodings-overview.html)。</description>
		<content:encoded><![CDATA[<p>我想 Python 的 unicode 物件沒存 UTF-*，而是直接存 code point (refer to <a href="http://effbot.org/zone/unicode-objects.htm" rel="nofollow">http://effbot.org/zone/unicode-objects.htm</a> and <a href="http://docs.python.org/lib/encodings-overview.html" rel="nofollow">http://docs.python.org/lib/encodings-overview.html</a>)。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：clsung</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-52167</link>
		<dc:creator>clsung</dc:creator>
		<pubDate>Fri, 24 Nov 2006 01:24:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-52167</guid>
		<description>謝謝，不過請教一下，Unicode 包含 UTF-8, UTF-16, UTF-32，那 python 的 Unicode 是？</description>
		<content:encoded><![CDATA[<p>謝謝，不過請教一下，Unicode 包含 UTF-8, UTF-16, UTF-32，那 python 的 Unicode 是？</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：yungyuc</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-51884</link>
		<dc:creator>yungyuc</dc:creator>
		<pubDate>Wed, 22 Nov 2006 13:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-51884</guid>
		<description>在 Python 裡面有兩種字串物件：str 和 unicode。str 可以使用各式各樣的編碼，包括 UTF-8, UTF-16，而 unicode 就是 Unicode。

如果需要在不同編碼間轉換，我通常會這樣作：

# -*- coding: UTF-8 -*-
uni = &quot;萬國碼&quot;.decode(&#039;UTF-8&#039;)
big5str = uni.encode(&#039;Big5&#039;)
sjisstr = uni.encode(&#039;S-JIS&#039;)</description>
		<content:encoded><![CDATA[<p>在 Python 裡面有兩種字串物件：str 和 unicode。str 可以使用各式各樣的編碼，包括 UTF-8, UTF-16，而 unicode 就是 Unicode。</p>
<p>如果需要在不同編碼間轉換，我通常會這樣作：</p>
<p># -*- coding: UTF-8 -*-<br />
uni = "萬國碼".decode(&#8216;UTF-8&#8242;)<br />
big5str = uni.encode(&#8216;Big5&#8242;)<br />
sjisstr = uni.encode(&#8216;S-JIS&#8217;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：clsung</title>
		<link>http://blog.dragon2.net/2006/11/14/392.php/comment-page-1#comment-50712</link>
		<dc:creator>clsung</dc:creator>
		<pubDate>Sat, 18 Nov 2006 07:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dragon2.net/archives/2006/11/14/392.php#comment-50712</guid>
		<description>這, 實在是太謝謝你了 :D</description>
		<content:encoded><![CDATA[<p>這, 實在是太謝謝你了 <img src='http://blog.dragon2.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

