簡體 UTF8 -> 繁體/正體 UTF8
Posted in python | By tarotoast | Tags: chinese, code, perl, Programming, python, utf8
Encode-CNmap 是好朋友
雖然字表沒有完整,但是大部份都有轉換成功,而且使用上也不錯簡單
轉換文字檔案:
cnmap -u2cb5 utf8.txt > utf8-cntrad.txt
對於懶得在 Python 下面 implement 繁簡轉換的人(me?)實在很好用:
import commands
s = commands.getoutput("echo '简体中文' | cnmap -ucb5")
print s
說真的,這方法最好別用 XD
Recent Comments