{"url":"https://nihohi.hatenadiary.org/entry/20120510/1336635554","provider_name":"Hatena Blog","height":"190","categories":["python","\u6587\u5b57\u30b3\u30fc\u30c9"],"version":"1.0","published":"2012-05-10 16:39:14","author_url":"https://blog.hatena.ne.jp/nihohi/","title":"\u65e5\u672c\u8a9e\u6587\u5b57\u306e\u6271\u3044(windows\u5411\u3051\u306b\u306f Shift_JIS\u3067\u306a\u304fcp932\u3067\u6271\u3046)","blog_title":"\u4f5c\u696d\u8a18\u9332/\u5099\u5fd8\u9332(\u4eee)","author_name":"nihohi","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnihohi.hatenadiary.org%2Fentry%2F20120510%2F1336635554\" title=\"\u65e5\u672c\u8a9e\u6587\u5b57\u306e\u6271\u3044(windows\u5411\u3051\u306b\u306f Shift_JIS\u3067\u306a\u304fcp932\u3067\u6271\u3046) - \u4f5c\u696d\u8a18\u9332/\u5099\u5fd8\u9332(\u4eee)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://nihohi.hatenadiary.org/","image_url":null,"width":"100%","type":"rich","provider_url":"https://hatena.blog","description":"(\u4e00\u756a\u5de6\u306e\u534a\u89d2\u30c1\u30eb\u30c0\u306f\u3069\u3053\u3067\u3082\u540c\u3058\u3088\u3046\u306b\u898b\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001)\u8868\u793a\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u771f\u3093\u4e2d\u3068\u3001\u4e00\u756a\u53f3\u306e\u6ce2\u30c0\u30c3\u30b7\u30e5\u304c\u540c\u3058\u3088\u3046\u306b\u898b\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u771f\u3093\u4e2d\u3068\u3001\u53f3\u306e\u6ce2\u30c0\u30c3\u30b7\u30e5\u306f\u7570\u306a\u308a\u307e\u3059\u3002 \u305d\u306e\u8a3c\u62e0\u306b\u3001python\u3067s\u3092\u8868\u793a\u3055\u305b\u308b\u3068\u9055\u3046\u6587\u5b57\u30b3\u30fc\u30c9(\\u301c\u3068\u3001\\uff5e)\u3068\u3057\u3066\u898b\u3048\u307e\u3059\u3002 >>> s = u\"~\u301c\u301c\" >>> s u'~\\u301c\\uff5e'\u3053\u308c\u3092shift_jis\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3059\u308b\u3068\u3001\u30a8\u30f3\u30b3\u30fc\u30c9\u306b\u5931\u6557\u3057\u307e\u3059\u3002 >>> s.encode(\"shift_jis\") Traceback (most recent call last): File \"<stdin>\", line 1\u2026"}