{"author_name":"JunichiIto","provider_url":"https://hatena.blog","title":"Perl\u3068VBScript\u3067\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5909\u63db\u3059\u308b","version":"1.0","description":"\u81ea\u5206\u306e\u4f5c\u696d\u30e1\u30e2\u3067\u3059\u3002 \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5b9a\u671f\u7684\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u5909\u63db\u5143\u306fUTF-8\u3001\u5909\u63db\u5148\u306fShift_JIS\u3067\u3059\u3002 \u6700\u8fd1Perl\u306b\u6163\u308c\u3066\u304d\u305f\u306e\u3067\u3001\u6700\u521d\u306fPerl\u3067\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002 use Encode; open my $r, '<:encoding(UTF-8)', 'utf8.txt'; open my $w, '>:encoding(cp932)', 'sjis.txt'; while(my $d = <$r>) { print $w $d; } close $w; close $r; exit; \u78ba\u304b\u3069\u3053\u304b\u306e\u30b5\u30a4\u30c8\u3067\u62fe\u3063\u3066\u304d\u305f\u2026","width":"100%","height":"190","url":"https://blog.jnito.com/entry/20111107/1320636165","published":"2011-11-07 12:22:45","author_url":"https://blog.hatena.ne.jp/JunichiIto/","type":"rich","blog_title":"give IT a try","provider_name":"Hatena Blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.jnito.com%2Fentry%2F20111107%2F1320636165\" title=\"Perl\u3068VBScript\u3067\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u5909\u63db\u3059\u308b - give IT a try\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9"],"blog_url":"https://blog.jnito.com/"}