{"image_url":"http://ecx.images-amazon.com/images/I/51VavR1gcyL.jpg","blog_url":"https://sugamasao.hatenablog.com/","categories":[],"title":"SJIS\u3067\u3082git diff\u3057\u305f\u3044","author_url":"https://blog.hatena.ne.jp/seiunsky/","width":"100%","blog_title":"\u3059\u304c\u30d6\u30ed","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F2014%2F03%2F14%2F212550\" title=\"SJIS\u3067\u3082git diff\u3057\u305f\u3044 - \u3059\u304c\u30d6\u30ed\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"SJIS\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u3082git diff\u3057\u305f\u3044\u3002\u3044\u3058\u308f\u308b\u3057\u306a\u3044\u3067\uff1b\uff1b \u3069\u3046\u3059\u308b\u304b \u8ffd\u8a18\uff1aNKF\u4f7f\u308f\u306a\u304f\u3066\u3082\u826f\u304b\u3063\u305f\uff08\u5f8c\u8ff0\uff09 $ git diff | nkf -u \u3067diff\u306e\u6587\u5b57\u5217\u3092UTF-8\u306b\u3059\u308c\u3070\u826f\u3044\u3002\u4eca\u65e5\u65e5NKF\u3082\u305d\u3046\u305d\u3046\u4f7f\u308f\u306a\u3044\u3057Mac OSX\u306b\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5165\u3063\u3066\u306a\u3044\u3063\u307d\u3044\u306e\u3067Homebrew\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002 $ brew install nkf \u3053\u308c\u3067git diff\u3067\u304d\u3066\u751f\u304d\u308b\u5e0c\u671b\u304c\u6e67\u3044\u3066\u304d\u307e\u3059\u306d\u3002 NKF\u3058\u3083\u306a\u304f\u3066iconv\u3067\u826f\u304b\u3063\u305f @sugamasao nkf \u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5165\u3063\u3066\u306a\u3044\u3051\u3069 iconv \u306f\u5165\u3063\u3066\u308b\u6c17\u304c\u3057\u307e\u3059\u3002\u8ffd\u52a0\u30c4\u30fc\u30eb\u306a\u3057\u3067\u3067\u304d\u308b\u304b\u3082\u3002\u2014 \u2026","height":"190","author_name":"seiunsky","url":"https://sugamasao.hatenablog.com/entry/2014/03/14/212550","provider_url":"https://hatena.blog","type":"rich","published":"2014-03-14 21:25:50","version":"1.0"}