{"id":5260,"date":"2022-05-07T15:48:29","date_gmt":"2022-05-07T06:48:29","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=5260"},"modified":"2022-05-08T07:32:42","modified_gmt":"2022-05-07T22:32:42","slug":"nkf","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/5260","title":{"rendered":"nkf"},"content":{"rendered":"<p>nkf (Network Kanji Filter) \u306e\u4f7f\u3044\u304b\u305f<\/p>\n<h2>\u77ed\u7e2e\u5f62\u5f0f\u30a8\u30f3\u30b3\u30fc\u30c9\u6307\u5b9a<\/h2>\n<ul>\n<li>\u5165\u529b\u6587\u5b57\u30b3\u30fc\u30c9\u6307\u5b9a : <code>-J<\/code>, <code>-S<\/code>, <code>-E<\/code>, <code>-W<\/code><\/li>\n<li>\u51fa\u529b\u6587\u5b57\u30b3\u30fc\u30c9\u6307\u5b9a : <code>-j<\/code>, <code>-s<\/code>, <code>-e<\/code>, <code>-w<\/code><\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h2>\u6587\u5b57\u30a8\u30f3\u30b3\u30fc\u30c9\u6307\u5b9a<\/h2>\n<ul>\n<li>\u5165\u529b\u6587\u5b57\u30b3\u30fc\u30c9\u6307\u5b9a : <code>--ic=&lt;encoding&gt;<\/code><\/li>\n<li>\u51fa\u529b\u6587\u5b57\u30b3\u30fc\u30c9\u6307\u5b9a : <code>--oc=&lt;encoding&gt;<\/code<\/li>\n<\/ul>\n<h2>encoding<\/h2>\n<ul>\n<li><strong>CP932<\/strong> : Code Page 932<\/li>\n<li><strong>UTF-8<\/strong> : BOM\u306a\u3057UTF-8<\/li>\n<li><strong>UTF-8-BOM<\/strong> : BOM\u3042\u308aUTF-8<\/li>\n<li><strong>UTF8-MAC<\/strong> : NFD(Normalization Form Canonical Decomposition)\u3001\u30b5\u30ed\u30b2\u30fc\u30c8\u30da\u30a2\u3001\u5408\u6210\u6587\u5b57\u5f62\u5f0f<\/li>\n<\/ul>\n<h3>\u4f7f\u7528\u4f8b<\/h3>\n<pre class=\"lang:default decode:true \" >$ nkf --ic=CP932 --oc=UTF8 --overwrite readme.txt<\/pre>\n<h3>\u95a2\u9023\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"\/tech\/index.php\/archives\/710\">\u6587\u5b57\u30b3\u30fc\u30c9\u4e00\u62ec\u5909\u63db<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>nkf (Network Kanji Filter) \u306e\u4f7f\u3044\u304b\u305f \u77ed\u7e2e\u5f62\u5f0f\u30a8\u30f3\u30b3\u30fc\u30c9\u6307\u5b9a \u5165\u529b\u6587\u5b57\u30b3\u30fc\u30c9\u6307\u5b9a : -J, -S, -E, -W \u51fa\u529b\u6587\u5b57\u30b3\u30fc\u30c9\u6307\u5b9a : -j, -s, -e, -w<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-5260","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=5260"}],"version-history":[{"count":22,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5260\/revisions"}],"predecessor-version":[{"id":5283,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5260\/revisions\/5283"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=5260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=5260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=5260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}