{"author_url":"https://blog.hatena.ne.jp/tnnsst35/","type":"rich","title":"\n\t\t\t\tPerl\u306edecode\t\t","provider_url":"https://hatena.blog","author_name":"tnnsst35","width":"100%","blog_url":"https://blog.tnnsst35.me/","categories":["Perl"],"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tnnsst35.me%2Fentry%2Ftech%2Fperl%2F429%2F\" title=\"\n\t\t\t\tPerl\u306edecode\t\t - \u307c\u304f\u306e\u30bb\u30fc\u30d6\u30dd\u30a4\u30f3\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"published":"2009-12-08 23:38:01","description":"<div class=\"section\"> Perl\u306edecode\u3092\u4f7f\u3063\u3066 [utf-8] \u2192 [euc-jp] \u306b\u5909\u63db\u3059\u308b\u3068\u304d\u306b\u5909\u306a\u30a8\u30e9\u30fc\u304c\u8d77\u3053\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u5bfe\u7b56\u3092\u30e1\u30e2\u3002 use Encode; ##\u306a\u3093\u304b\u3082\u308d\u3082\u308d\u66f8\u3044\u3066\u3042\u308b\u3068\u3057\u3066 my $data = '\u30cf\u30ed\u30fc\u30ef\u30fc\u30eb\u30c9' #utf-8\u306e\u6587\u5b57\u5217 $data = decode('utf-8', $data); $data = encode('euc-jp', $data); \u3053\u308c\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002 Cannot decode string with wide characters #\u3053\u306e\u5f8c\u308d\u306bEncode.pm\u306e\u30a8\u30e9\u30fc\u884c\u304c\u3067\u2026","height":"190","url":"https://blog.tnnsst35.me/entry/tech/perl/429/","blog_title":"\u307c\u304f\u306e\u30bb\u30fc\u30d6\u30dd\u30a4\u30f3\u30c8","version":"1.0"}