{"id":737,"date":"2009-09-11T23:55:32","date_gmt":"2009-09-11T14:55:32","guid":{"rendered":"http:\/\/www.gesource.jp\/weblog\/?p=737"},"modified":"2017-07-16T17:35:00","modified_gmt":"2017-07-16T08:35:00","slug":"unicodestringjisiso2022jp","status":"publish","type":"post","link":"https:\/\/www.gesource.jp\/weblog\/?p=737","title":{"rendered":"UnicodeString\u3092JIS(ISO-2022-JP)\u306b\u5909\u63db\u3059\u308b\u3068\u6587\u5b57\u304c\u6e1b\u308b"},"content":{"rendered":"<p>C++Builder 2009\u3067\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\u3001UnicodeString\u3092JIS\u30b3\u30fc\u30c9\u306b\u5909\u63db\u3059\u308b\u3068\u6587\u5b57\u304c\u6e1b\u308b\u3088\u3046\u3060\u3002<\/p>\n<pre><code>\/\/UTF-8\nAnsiStringT&lt;65001&gt; utf8 = L\"\u6587\u5b57\u30b3\u30fc\u30c9\"; \/\/=&gt; \u6587\u5b57\u30b3\u30fc\u30c9\n\n\/\/Shift_JIS\nAnsiStringT&lt;932&gt; sjis = L\"\u6587\u5b57\u30b3\u30fc\u30c9\"; \/\/=&gt; \u6587\u5b57\u30b3\u30fc\u30c9\n\n\/\/EUC_JP\nAnsiStringT&lt;20932&gt; euc = L\"\u6587\u5b57\u30b3\u30fc\u30c9\"; \/\/=&gt; \u6587\u5b57\u30b3\u30fc\u30c9\n\n\/\/x-mac-japanese\nAnsiStringT&lt;10001&gt; mac = L\"\u6587\u5b57\u30b3\u30fc\u30c9\"; \/\/=&gt; \u6587\u5b57\u30b3\u30fc\u30c9\n\n\/\/JIS\u30b3\u30fc\u30c9\u306e\u6642\u306f\u6587\u5b57\u304c\u6e1b\u308b\n\/\/iso-2022-jp(JIS)\nAnsiStringT&lt;50220&gt; jis1 = L\"\u6587\u5b57\u30b3\u30fc\u30c9\"; \/\/=&gt; \u6587\u5b57\u30b3\n\n\/\/csISO2022JP (JIS 1 \u30d0\u30a4\u30c8 \u30ab\u30bf\u30ab\u30ca\u53ef)\nAnsiStringT&lt;50220&gt; jis2 = L\"\u6587\u5b57\u30b3\u30fc\u30c9\"; \/\/=&gt; \u6587\u5b57\u30b3\n\n\/\/iso-2022-jp (JIS 1 \u30d0\u30a4\u30c8 \u30ab\u30bf\u30ab\u30ca\u53ef - SO\/SI)\nAnsiStringT&lt;50220&gt; jis3 = L\"\u6587\u5b57\u30b3\u30fc\u30c9\"; \/\/=&gt; \u6587\u5b57\u30b3\n<\/code><\/pre>\n<p>\u3069\u3046\u3084\u3089\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u304c\u6df7\u3056\u308b\u3068\u554f\u984c\u306b\u306a\u308b\u307f\u305f\u3044\u3002<\/p>\n<pre><code>AnsiStringT&lt;50220&gt; jis1 = L\"12345\";\nUnicodeString s1 = jis1; \/\/12345\n\nAnsiStringT&lt;50220&gt; jis2 = L\"abc\";\nUnicodeString s2 = jis2; \/\/abc\n\nAnsiStringT&lt;50220&gt; jis3 = L\"\u3042\u3044\u3046\";\nUnicodeString s3 = jis3; \/\/\u3042\n<\/code><\/pre>\n<p>\u3082\u3046\u5c11\u3057\u8abf\u3079\u3066\u307f\u305f\u3044\u3002<\/p>\n<p>\u8ffd\u8a18<br \/>\nC++Builder 2009\u3067\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++Builder 2009\u3067\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\u3001UnicodeString\u3092JIS\u30b3\u30fc\u30c9\u306b\u5909\u63db\u3059\u308b\u3068\u6587\u5b57\u304c\u6e1b\u308b\u3088\u3046\u3060\u3002 \/\/UTF-8 AnsiStringT&lt;65001&gt; utf8 = L&#8221;\u6587\u5b57\u30b3\u30fc\u30c9&#8221;;  &#8230;<\/p>\n<p><a href=\"https:\/\/www.gesource.jp\/weblog\/?p=737\" class=\"more-link\">Continue reading &lsquo;UnicodeString\u3092JIS(ISO-2022-JP)\u306b\u5909\u63db\u3059\u308b\u3068\u6587\u5b57\u304c\u6e1b\u308b&rsquo; &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16],"tags":[149,54],"class_list":["post-737","post","type-post","status-publish","format-standard","hentry","category-cbuilder","tag-cbuilder","tag-unicodestring"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=737"}],"version-history":[{"count":0,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/737\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gesource.jp\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}