{"author_url":"https://blog.hatena.ne.jp/shigemk2/","categories":["Python"],"blog_title":"by shigemk2","provider_name":"Hatena Blog","height":"190","description":"unicode\u306a\u6587\u5b57\u5217\u3067replace\u3068\u304bformat\u3068\u304b\u3084\u3063\u305f\u3068\u304d\u306e\u6319\u52d5 >>> a = \"\u65e5\u672c\u8a9e\".decode(\"utf-8\") >>> a u'\\u65e5\\u672c\\u8a9e' >>> b = \"{}\".format(a) Traceback (most recent call last): File \"<stdin>\", line 1, in <module> UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)","blog_url":"https://www.shigemk2.com/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2018%2F05%2F30%2F161423\" title=\"Python unicode\u306a\u6587\u5b57\u5217\u3067replace\u3068\u304bformat\u3068\u304b\u3084\u3063\u305f\u3068\u304d\u306e\u6319\u52d5 - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"shigemk2","published":"2018-05-30 16:14:23","url":"https://www.shigemk2.com/entry/2018/05/30/161423","width":"100%","image_url":null,"title":"Python unicode\u306a\u6587\u5b57\u5217\u3067replace\u3068\u304bformat\u3068\u304b\u3084\u3063\u305f\u3068\u304d\u306e\u6319\u52d5","version":"1.0","provider_url":"https://hatena.blog"}