linux iconv 轉碼
iconv---編碼轉換
用法: iconv [選項...] [文件...]
有如下選項可用:
輸入/輸出格式規範:
-f, --from-code=名稱 原始文本編碼
-t, --to-code=名稱 輸出編碼
信息:
-l, --list 列舉所有已知的字符集
輸出控制:
-c 從輸出中忽略無效的字符
-o, --output=FILE 輸出文件
-s, --silent 關閉警告
--verbose 打印進度信息
-?, --help 給出該系統求助列表
--usage 給出簡要的用法信息
-V, --version 打印程序版本號
例子:
iconv -c -f utf-8 -t gb2312 aaa.txt >bbb.txt
這個命令讀取aaa.txt文件,從utf-8編碼轉換為gb2312編碼,忽略無效的字符,其輸出定向到bbb.txt文件。
來自:http://www.cnblogs.com/morebetter/archive/2005/05/28/164099.html
迴響
linux iconv 轉碼 | 豬窩
Hello, this weekend is pleasant in support of me, because this time i am reading this great educational article here
at my house.
linux iconv 轉碼 | 豬窩
There's definately a great deal to know about this topic. I really like all the
points you made.
linux iconv 轉碼 | 豬窩
Pretty section of content. I simply stumbled upon your website and in accession capital to assert that
I acquire actually loved account your blog posts. Anyway I'll be subscribing to your feeds and even I success you access constantly rapidly.