Thursday, 22 July 2010

由繁體中文 utf8 檔案轉為簡體中文 utf8 檔案

由 繁體中文 utf8 -> BIG5 ->GB -> 簡體中文 utf8
$ iconv -f utf8 -t big5 note.tw.utf8 > note.big5
$ iconv -f big5 -t gb2312 note.big5 > note.gb
$ iconv -f gb2312 -t utf8 note.gb > note.cn.utf8

可用pipe簡化 為一 command :
$ iconv -f utf8 -t big5 note.tw.utf8 | \
> iconv -f big5 -t gb2312 | \
> iconv -f gb2312 -t utf8 > note.cn.utf8

參考 :
http://samuelololol.blogspot.com/2009/11/mplayer-iconv.html


最簡單方法 :
$ cconv -f UTF8-TW -t UTF8-CN note.tw.utf8

cconv 是很新的程式, 但很好用,希望它繼續發展, 令翻譯工作更加方便。

它的homepage :
http://code.google.com/p/cconv/

No comments:

Post a Comment