{"id":5385,"date":"2019-11-04T11:22:12","date_gmt":"2019-11-04T03:22:12","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5385"},"modified":"2019-11-28T21:42:59","modified_gmt":"2019-11-28T13:42:59","slug":"iconv","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/iconv","title":{"rendered":"iconv\u547d\u4ee4 – \u8f6c\u6362\u6587\u4ef6\u7f16\u7801"},"content":{"rendered":"\n

iconv\u547d\u4ee4\u662f Linux \u7cfb\u7edf\u81ea\u5e26\u7684\u7528\u4e8e\u8f6c\u6362\u6587\u4ef6\u7f16\u7801\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>iconv [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-f <\/td>\u8f93\u5165\u7f16\u7801<\/td><\/tr>
-t <\/td>\u8f93\u51fa\u7f16\u7801<\/td><\/tr>
-c<\/td>\u5ffd\u7565\u4e0d\u53ef\u8f6c\u6362\u7684\u5b57\u7b26<\/td><\/tr>
--unicode-subst=FORMATSTRING<\/td>\u66ff\u4ee3\u4e0d\u53ef\u8f6c\u6362\u7684 Unicode \u5b57\u7b26<\/td><\/tr>
--byte-subst=FORMATSTRING<\/td>\u66ff\u4ee3\u4e0d\u53ef\u8f6c\u6362\u7684\u5b57\u8282<\/td><\/tr>
--widechar-subst=FORMATSTRING<\/td>\u66ff\u4ee3\u4e0d\u53ef\u8f6c\u6362\u7684\u5bbd\u5b57\u7b26<\/td><\/tr>
-s<\/td>\u4e0d\u663e\u793a\u6709\u5173\u8f6c\u6362\u51fa\u9519\u7684\u4fe1\u606f<\/td><\/tr>
-l<\/td>\u5217\u51fa\u652f\u6301\u7684\u7f16\u7801<\/td><\/tr>
--version<\/td>\u663e\u793a\u7248\u672c\u4fe1\u606f\u5e76\u9000\u51fa<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u770b\u652f\u6301\u7684\u7f16\u7801\u5217\u8868\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iconv -l<\/pre>\n\n\n\n

\u8f6c\u6362\u6587\u4ef6\u5185\u5bb9\u7f16\u7801\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# iconv -f ENCODING -t ENCODING INPUTFILE<\/pre>\n","protected":false},"excerpt":{"rendered":"

iconv\u547d\u4ee4\u662f Linux \u7cfb\u7edf\u81ea\u5e26\u7684\u7528\u4e8e\u8f6c\u6362\u6587\u4ef6\u7f16\u7801\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1aiconv [\u53c2\u6570] \u5e38\u7528\u53c2 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5385"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5385"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5385\/revisions"}],"predecessor-version":[{"id":5828,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5385\/revisions\/5828"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}