Ms7 Search
Google 搜尋 翻譯
calendar
« 九月 2024 »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
近期文章
文章分類
網站連結
Syndicate

« | »

linux iconv 轉碼

2014-02-19 @ 11:43 in Linux

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.

作者 many g @ 07:35, 2020-06-20

linux iconv 轉碼 | 豬窩

There's definately a great deal to know about this topic. I really like all the
points you made.

作者 of g @ 03:27, 2020-06-21

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.

作者 best hosting @ 04:52, 2020-08-11
«上一篇   1 2 3 4 5 6 7 8 9 10 11 12
發表迴響
 authimage