{"height":"190","author_name":"amagitakayosi","blog_url":"https://blog.amagi.dev/","author_url":"https://blog.hatena.ne.jp/amagitakayosi/","categories":["JavaScript"],"provider_url":"https://hatena.blog","url":"https://blog.amagi.dev/entry/2016/02/17/203631","title":"axios\u3067Shift-JIS\u306a\u30da\u30fc\u30b8\u3092\u30af\u30ed\u30fc\u30eb\u3059\u308b\u65b9\u6cd5","version":"1.0","image_url":null,"blog_title":"\u30de\u30eb\u30b7\u30c6\u30a4\u30a2","type":"rich","description":"http://bit.ly/1SS2bDp \u2191\u306e\u3088\u3046\u306aShift-JIS\u306a\u30da\u30fc\u30b8\u3092axios\u3067\u30af\u30ed\u30fc\u30eb\u3059\u308b\u3068\u304d\u306f\u3001iconv\u3092\u4f7f\u3044\u3001transformResponse\u306e\u6bb5\u968e\u3067\u5909\u63db\u3057\u3066\u3057\u307e\u3046\u3068\u826f\u3044\u3002 github.com import { Iconv } from 'iconv'; const sjis2utf8 = new Iconv('SHIFT_JIS', 'UTF-8//TRANSLIT//IGNORE'); axios.get('http://bit.ly/1SS2bDp', { responseType : 'arraybuffer', transformResponse : [(d\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.amagi.dev%2Fentry%2F2016%2F02%2F17%2F203631\" title=\"axios\u3067Shift-JIS\u306a\u30da\u30fc\u30b8\u3092\u30af\u30ed\u30fc\u30eb\u3059\u308b\u65b9\u6cd5 - \u30de\u30eb\u30b7\u30c6\u30a4\u30a2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2016-02-17 20:36:31","width":"100%","provider_name":"Hatena Blog"}