{"published":"2015-11-07 23:45:52","blog_url":"https://turanegaku.hateblo.jp/","width":"100%","author_url":"https://blog.hatena.ne.jp/turane_gaku/","image_url":null,"version":"1.0","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","description":"\u73fe\u8c61 Rubyist Magazine - WEBrick\u3067\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u3092\u4f5c\u3063\u3066\u904a\u3076 \u4e0a\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306bruby\u3067webrick\u4f7f\u3063\u3066proxy server\u4f5c\u3063\u3066\u3044\u3056body\u3092\u51fa\u529b\u3057\u305f\u3089\u51c4\u3044\u3044\u304d\u304a\u3044\u3067\u6587\u5b57\u5316\u3051\u3059\u308b(\u3082\u3046tmux\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u30d0\u30fc?\u3068\u304b\u4fb5\u98df\u3059\u308b\u52e2\u3044)\uff0e res.body.encoding \u306e\u5024\u304cASCII-8BIT\u306e\u3068\u304d\u5316\u3051\u308b\uff0e UTF-8\u306e\u6642\u306f\u5927\u4e08\u592b ruby\u306b\u306freadline\u51e6\u7f6e\u306f\u307b\u3069\u3053\u3057\u3066\u3042\u308b\uff0e force_encoding\u3068\u304b\u8a2d\u5b9a\u3057\u3066\u3082\u3060\u3081 encode('utf-8')\u3068\u304b\u3057\u3088\u3046\u3068\u3059\u308b\u3068invalid\u3068\u304b\u3067\u3066\u3067\u304d\u306a\u3044\uff0e \u7121\u52b9\u306a\u6587\u5b57\u5217\u3092\u7121\u8996\u3057\u3066encode\u3059\u308b\u3068\u306a\u306b\u3082\u3067\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fturanegaku.hateblo.jp%2Fentry%2F2015%2F11%2F07%2F234552\" title=\"ruby ASCII-8BIT \u6587\u5b57\u5316\u3051\u3059\u308b - \u3064\u3089\u306d\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"ruby ASCII-8BIT \u6587\u5b57\u5316\u3051\u3059\u308b","url":"https://turanegaku.hateblo.jp/entry/2015/11/07/234552","type":"rich","author_name":"turane_gaku","blog_title":"\u3064\u3089\u306d\u306e\u65e5\u8a18","categories":["Ruby"],"height":"190"}