{"published":"2012-06-28 21:39:23","provider_name":"Hatena Blog","url":"https://yellowpepper.hatenadiary.org/entry/20120628/1340887163","image_url":null,"author_url":"https://blog.hatena.ne.jp/yellowpepper/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyellowpepper.hatenadiary.org%2Fentry%2F20120628%2F1340887163\" title=\"nkf \u3068\u304b fileencoding \u3068\u304b ++enc \u3068\u304b. - Log4jpnLog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Log4jpnLog","title":"nkf \u3068\u304b fileencoding \u3068\u304b ++enc \u3068\u304b.","author_name":"yellowpepper","blog_url":"https://yellowpepper.hatenadiary.org/","categories":["Linux","\u6587\u5b57\u30bb\u30c3\u30c8","Vim"],"provider_url":"https://hatena.blog","type":"rich","version":"1.0","height":"190","description":"\u6df7\u4e71\u3057\u305d\u3046\u3060\u3063\u305f\u306e\u3067, \u30e1\u30e2. Shift_JIS \u3092\u4f8b\u306b, 3\u3064\u306e\u6587\u5b57\u30bb\u30c3\u30c8\u5909\u66f4\u65b9\u6cd5\u3068\u305d\u308c\u3089\u306e\u9055\u3044\u3092. nkf -s --overwrite [filenname] \u30b7\u30a7\u30eb\u4e0a\u3067\u30d5\u30a1\u30a4\u30eb\u3092 shift_jis \u306b\u5909\u66f4. :set fileencoding=sjis vim \u7de8\u96c6\u4e2d\u306b, vimrc \u306b\u81ea\u5206\u3067\u8a18\u8f09\u3057\u3066\u3044\u308bfileencodings \u306e\u4e2d\u304b\u3089, \u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u304d\u306b\u4f7f\u7528\u3059\u308b\u6587\u5b57\u30bb\u30c3\u30c8\u3092 sjis \u306b\u30bb\u30c3\u30c8. :w \u3067\u3053\u306e\u8a2d\u5b9a\u3092\u4fdd\u5b58\u3059\u308b\u3068, vim\u4e0a\u3067\u53cd\u6620\u3055\u308c\u308b. (\u3061\u306a\u307f\u306b, vim \u4e0a\u3067 :set fileencodings \u306a\u3069\u3068\u3084\u308b\u3068\u81ea\u5206\u304cvimrc\u3067\u30bb\u30c3\u30c8\u3057\u305f\u6587\u5b57\u30bb\u30c3\u30c8\u4e00\u2026"}