ÀûÓÃiconvÃüÁî½øÐбàÂëת»»
iconvÃüÁîÓÃÓÚת»»Ö¸¶¨ÎļþµÄ±àÂë,ĬÈÏÊä³öµ½±ê×¼Êä³öÉ豸,Òà¿ÉÖ¸¶¨Êä³öÎļþ¡£
Ó÷¨£º iconv [Ñ¡Ïî...] [Îļþ...]
ÓÐÈçÏÂÑ¡Ïî¿ÉÓÃ:
ÊäÈë/Êä³ö¸ñʽ¹æ·¶£º
-f, --from-code=Ãû³Æ ÔʼÎı¾±àÂë
-t, --to-code=Ãû³Æ Êä³ö±àÂë
ÐÅÏ¢£º
-l, --list ÁоÙËùÓÐÒÑÖªµÄ×Ö·û¼¯
Êä³ö¿ØÖÆ£º
-c ´ÓÊä³öÖкöÂÔÎÞЧµÄ×Ö·û
-o, --output=FILE Êä³öÎļþ
-s, --silent ¹Ø±Õ¾¯¸æ
--verbose ´òÓ¡½ø¶ÈÐÅÏ¢
-?, --help ¸ø³ö¸ÃϵͳÇóÖúÁбí
--usage ¸ø³ö¼òÒªµÄÓ÷¨ÐÅÏ¢
-V, --version ´òÓ¡³ÌÐò°æ±¾ºÅ
Àý×Ó:
iconv -f utf-8 -t gb2312 aaa.txt >bbb.txt
Õâ¸öÃüÁî¶ÁÈ¡aaa.txtÎļþ£¬´Óutf-8±àÂëת»»Îªgb2312±àÂë,ÆäÊä³ö¶¨Ïòµ½bbb.txtÎļþ¡£