<?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"
	>

<channel>
	<title>lancetw的新天地 &#187; 編碼</title>
	<atom:link href="http://blochy.com/lancetw/blog/archives/category/encoding/feed/" rel="self" type="application/rss+xml" />
	<link>http://blochy.com/lancetw/blog</link>
	<description>“You know what I’d like to be? I mean if I had my goddam choice, I’d just be the catcher in the rye and all.”</description>
	<pubDate>Mon, 23 Apr 2007 11:18:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>如何用 Quod Libet 收聽 big5 網路電台</title>
		<link>http://blochy.com/lancetw/blog/archives/2006/08/16/127/</link>
		<comments>http://blochy.com/lancetw/blog/archives/2006/08/16/127/#comments</comments>
		<pubDate>Wed, 16 Aug 2006 13:03:23 +0000</pubDate>
		<dc:creator>lancetw</dc:creator>
		
		<category><![CDATA[GNU/Linux]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[分享]]></category>

		<category><![CDATA[筆記]]></category>

		<category><![CDATA[編碼]]></category>

		<category><![CDATA[軟體]]></category>

		<guid isPermaLink="false">http://blochy.com/lancetw/blog/archives/2006/08/16/127/</guid>
		<description><![CDATA[ 因為 id3v2 標籤的因素，目前台灣絕大多數的網路電台都是使用 big5 碼，造成在 UTF-8 環境下的播放軟體就會接收到亂碼，我們可以用 zh_TW.big5 來啟動播放軟體，便能輕鬆治標。這裡以 Ubuntu 6.06 為例。:P
首先檢查你的系統上是否有 zh_TW.big5 locale：

locale -a

通常是沒有的，現在我們來生一個：

編輯 /var/lib/locales/supported.d/zh
加入：
zh_TW.Big5 Big5
接著執行：
sudo locale-gen
系統上就有 zh_TW.Big5 了。

有了 zh_TW.Big5 可用後，最後弄個會以 big5 啟動程式的執行檔，這裡檔名取作 quodlibet-big5：
&#19979;&#36733;: quodlibet-big5#!/bin/sh
LANG=&#34;zh_TW.big5&#34; quodlibet &#38;
存檔後放到 /usr/local/bin 底下，並加上執行權限：

sudo cp quodlibet-big5 /usr/local/bin/
sudo chmod +x /usr/local/bin/quodlibet-big5

執行 quodlibet-big5 就可以聽 big5 電台了。
參考：
MacBlog2 - Ubuntu 雜記
]]></description>
		<wfw:commentRss>http://blochy.com/lancetw/blog/archives/2006/08/16/127/feed/</wfw:commentRss>
		</item>
		<item>
		<title>關於 Stellarium 的中文字型顯示問題</title>
		<link>http://blochy.com/lancetw/blog/archives/2006/08/07/115/</link>
		<comments>http://blochy.com/lancetw/blog/archives/2006/08/07/115/#comments</comments>
		<pubDate>Mon, 07 Aug 2006 03:15:54 +0000</pubDate>
		<dc:creator>lancetw</dc:creator>
		
		<category><![CDATA[GNU/Linux]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[字型]]></category>

		<category><![CDATA[星象]]></category>

		<category><![CDATA[筆記]]></category>

		<category><![CDATA[編碼]]></category>

		<category><![CDATA[螢幕攝]]></category>

		<category><![CDATA[軟體]]></category>

		<guid isPermaLink="false">http://blochy.com/lancetw/blog/archives/2006_08_07/115/</guid>
		<description><![CDATA[ 如你是用開放源碼的作業系統，又有安裝 Stellarium 這個超棒的星象軟體，你可能會發現，整個畫面都是框框字，你可能會懷疑該軟體壞掉了。
其實不是，真正的原因是該軟體做了i18n，卻不包含字體的緣故，才導致滿畫面框框字。下面為官方的說明：

為了避免下載的檔案過大，您在(官方)這裡下載的Stellarium並沒有包含中文字型。要正確顯示正體中文，請到cwTeX TrueType 字型區下載 cwTeX 圓體，複製到 C:\Program Files\Stellarium\data 然後在您的 config.ini 修改 base_font_name 成 cwyen.ttf 。
cwTeX 圓體經過測試是適合用在本軟體的字型，此字型以GPL授權故下載與散布一切合法。




以下教你如何用一些些技巧和暴力改出如上圖中的美妙中文界面，觀察優美的星空，以 Ubuntu，Stellarium 0.8.x 版為例。
首先你需要一個適合小字型顯示的CJK字型，你可以到這裡下載你喜歡的中文字型，或是用官方推薦的 cwTeX 圓體。
這裡我下載了HanWangHeiLight (wt011.ttf)，王漢宗細黑體來作為 Stellarium 的顯示字型。
下載好後，用管理者權限 (sudo) 複製到 /usr/share/stellarium/data 或是你安裝 stellarium 的位置下， data 資料夾中。
編輯 data/fontmap.dat，將語系預設使用的字型改成剛抓的 wt011.ttf：

zh_HK   ukai.ttf        1.2     wt011.ttf    [...]]]></description>
		<wfw:commentRss>http://blochy.com/lancetw/blog/archives/2006/08/07/115/feed/</wfw:commentRss>
		</item>
		<item>
		<title>在 UTF-8 環境下用 screen 玩中文 mud</title>
		<link>http://blochy.com/lancetw/blog/archives/2006/08/07/114/</link>
		<comments>http://blochy.com/lancetw/blog/archives/2006/08/07/114/#comments</comments>
		<pubDate>Sun, 06 Aug 2006 23:51:45 +0000</pubDate>
		<dc:creator>lancetw</dc:creator>
		
		<category><![CDATA[GNU/Linux]]></category>

		<category><![CDATA[mud]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[筆記]]></category>

		<category><![CDATA[編碼]]></category>

		<category><![CDATA[軟體]]></category>

		<category><![CDATA[遊戲]]></category>

		<guid isPermaLink="false">http://blochy.com/lancetw/blog/archives/2006_08_07/114/</guid>
		<description><![CDATA[
開啟 screen
&#60;CTRL&#62;&#60;A&#62;+&#60;:&#62; #冒號，用 shift+; 輸入
輸入 encoding:big5，enter
export LC_ALL=&#34;C&#34;
開始 telnet mud 吧，例如重生的世界：
telnet -8 mud.revivalworld.org 4000
台灣 Mud 列表

]]></description>
		<wfw:commentRss>http://blochy.com/lancetw/blog/archives/2006/08/07/114/feed/</wfw:commentRss>
		</item>
		<item>
		<title>轉換檔名編碼利器 convmv</title>
		<link>http://blochy.com/lancetw/blog/archives/2006/08/07/113/</link>
		<comments>http://blochy.com/lancetw/blog/archives/2006/08/07/113/#comments</comments>
		<pubDate>Sun, 06 Aug 2006 23:41:22 +0000</pubDate>
		<dc:creator>lancetw</dc:creator>
		
		<category><![CDATA[GNU/Linux]]></category>

		<category><![CDATA[ubuntu]]></category>

		<category><![CDATA[編碼]]></category>

		<category><![CDATA[軟體]]></category>

		<guid isPermaLink="false">http://blochy.com/lancetw/blog/archives/2006_08_07/113/</guid>
		<description><![CDATA[ 安裝：

sudo apt-get install convmv
或到 http://j3e.de/linux/convmv/ 下載

用法：

convmv --help #先看說明
convmv --list #列出所有可用編碼
convmv -f big5-eten -t utf8 -r /Path/To/Your/Files #從 big5 檔名轉碼成 utf8，僅顯示測試結果，尚未實際轉換喔。
convmv -f big5-eten -t utf8 -r --notest /Path/To/Your/Files #加上 --notest 參數，正式進行檔名轉碼。
#常用在從 windows 搬到 linux UTF-8 環境結果產生亂碼的檔名。

參考：
http://wiki.debian.org.tw/index.php/Unicode
小兔的筆記本 » Blog Archive » convmv 介紹
好用的轉碼工具 convmv - CreMaker's in-life Blog
convmv &#038; iconv - 無語録むごろく - by chongmeng
]]></description>
		<wfw:commentRss>http://blochy.com/lancetw/blog/archives/2006/08/07/113/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
