Tagged with " chinese"

No Thumbnail

簡體 UTF8 -> 繁體/正體 UTF8

Encode-CNmap 是好朋友 雖然字表沒有完整,但是大部份都有轉換成功,而且使用上也不錯簡單 轉換文字檔案: cnmap -u2cb5 utf8.txt > utf8-cntrad.txt 對於懶得在 Python 下面 implement 繁簡轉換的人(me?)實在很好用: import commands s = commands.getoutput("echo '简体中文' [...]

Mar 15, 2008     1 Comment
Read More
No Thumbnail

輕鬆將 BIG5/GBK 檔名轉成 UTF-8

剛 Google 了一下發現 convmv 是超級好朋友 (l) 使用如下: convmv -f big5 -t utf8 -r * 會先出現一次測試 output 如果都沒有錯誤的話會提示說加個 –notest 正式改名 所有 [...]

Jan 5, 2008     2 Comments
Read More
No Thumbnail

aMSN + gcin 中文輸入問題

剛把 Ubuntu 預設的 SCIM 換成 gcin 後發現 aMSN 不能打中文 初步的找了一下猜測可能是 GTK+ 的 IM Module 沒有設定好 在 ~/.gtkrc.mine裡面加了一行 export GTK_IM_MODULE=gcin 重開 [...]

Sep 26, 2007     2 Comments
Read More
No Thumbnail

Ajax 的 responseText 中文亂碼問題

剛剛在實驗 element.innerHTML = AJAX.responseText 時候碰到了中文亂碼問題,稍微找了一下,以下是最簡單的解法。 假設 AJAX.open('POST', 'cgi.php', true), 然後 cgi.php 要輸出中文的內容,那記得在輸出前先丟個 header: header('Content-Type:text/html;charset=big5'); 問題解決。 對付 responseXML 時候把 text/html 改成 [...]

Mar 30, 2007     1 Comment
Read More