{"categories":["Ruby","Ruby 2"],"type":"rich","published":"2014-01-03 00:00:00","description":"\u672c\u6587 \u6709\u540d\u4e8b\u9805\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001Win32API\u3092\u4f7f\u3063\u3066\u56fa\u5b9a\u9577\u6587\u5b57\u5217\u3092\u542b\u3080\u69cb\u9020\u4f53\u3092\u6271\u304a\u3046\u3068\u3057\u305f\u6642\u306b\u6587\u5b57\u5316\u3051\uff08\uff1f\uff09\u3057\u3066\u624b\u9593\u53d6\u3063\u305f\u306e\u3067\u30e1\u30e2\u3067\u3059\u3002 \u7d50\u8ad6\u3068\u3057\u3066\u306funpack(\"A*\")\u306e\u8fd4\u3059\u6587\u5b57\u5217\u304cASCII-8BIT\u3067\u3042\u308b\u3053\u3068\u304c\u539f\u56e0\u3060\u3063\u305f\u306e\u3067\u3001 String::force_encoding('SJIS') \uff08\u6587\u5b57\u30b3\u30fc\u30c9\u304cShift-JIS\u306e\u3068\u304d\uff09 or String::force_encoding('SJIS').encode('UTF-8') \uff08\u6587\u5b57\u30b3\u30fc\u30c9\u304cUTF-8\u306e\u3068\u304d\uff09 \u3067\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002 \u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306fWin32 API\u306emixerGetDevCapsA\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3066\u5f15\u6570\u306b\u4f7f\u2026","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2014%2F01%2F03%2F000000\" title=\"Ruby 2.0.0\u3068Win32API\u3067\u69cb\u9020\u4f53\u5185\u90e8\u306e\u56fa\u5b9a\u9577\u6587\u5b57\u5217\uff08char\u578b\uff09\u3092\u6271\u3046 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Ruby 2.0.0\u3068Win32API\u3067\u69cb\u9020\u4f53\u5185\u90e8\u306e\u56fa\u5b9a\u9577\u6587\u5b57\u5217\uff08char\u578b\uff09\u3092\u6271\u3046","author_name":"potisan","blog_url":"https://potisan-programming-memo.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/potisan/","version":"1.0","height":"190","provider_url":"https://hatena.blog","width":"100%","url":"https://potisan-programming-memo.hatenablog.jp/entry/2014/01/03/000000","image_url":null,"provider_name":"Hatena Blog"}