{"description":"Google App Engine\u5099\u5fd8\u9332\u3002 Python\u3067\u306futf-8\u3068Unicode\u306f\u5225\u7269\u3089\u3057\u3044\u3002 utf-8\u306e\u307e\u307e\u3067\u306f\u3001\u6587\u5b57\u5358\u4f4d\u3067\u6b63\u3057\u304f\u6587\u5b57\u5217\u51e6\u7406\u3092\u3057\u3066\u304f\u308c\u306a\u3044\u3002Unicode\u306b\u3059\u308c\u3070\u3001\u6b63\u3057\u304f\u51e6\u7406\u3055\u308c\u308b\u3002 utf-8\u306e\u65e5\u672c\u8a9e\u6587\u5b57\u5217\u304b\u3089\u3001\u4e00\u90e8\u3092\u53d6\u308a\u51fa\u3059\u5834\u5408\u3001\u7d50\u69cb\u9762\u5012\u3002 \u226a\u4f8b\u226b utf8 = str.encode('utf-8') html = '<td>'+utf8[:5]+'</td>' \u3067\u306f\u3001ascii\u3068\u3057\u3066\u30d0\u30a4\u30c8\u5358\u4f4d\u3067\u53d6\u308a\u51fa\u3059\u305f\u3081\u3001\u6587\u5b57\u5316\u3051\u3059\u308b\u3002 utf8 = str.encode('utf-8') html = '<td>'+unicode(utf8,'utf-8')[:5].enc\u2026","provider_name":"Hatena Blog","title":"Google App Engine\uff1autf-8\u306e\u6587\u5b57\u5217\u5207\u308a\u51fa\u3057","author_url":"https://blog.hatena.ne.jp/ok2nd/","blog_url":"https://ok2nd.hatenablog.com/","author_name":"ok2nd","width":"100%","provider_url":"https://hatena.blog","blog_title":"\u4e2d\u7d1a\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u81ea\u5b85\u3067PHP \u30d6\u30ed\u30b0","height":"190","categories":["Python"],"version":"1.0","published":"2011-08-30 18:17:38","url":"https://ok2nd.hatenablog.com/entry/2011/08/30/181738","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fok2nd.hatenablog.com%2Fentry%2F2011%2F08%2F30%2F181738\" title=\"Google App Engine\uff1autf-8\u306e\u6587\u5b57\u5217\u5207\u308a\u51fa\u3057 - \u4e2d\u7d1a\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u81ea\u5b85\u3067PHP \u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","image_url":null}