{"id":2100,"date":"2018-04-14T22:07:29","date_gmt":"2018-04-14T13:07:29","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2100"},"modified":"2024-11-08T09:13:29","modified_gmt":"2024-11-08T00:13:29","slug":"shift-jis%e3%81%ae0x5c%e5%95%8f%e9%a1%8c","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2100","title":{"rendered":"Shift-JIS 0x5C\u554f\u984c"},"content":{"rendered":"<p>Shift-JIS\u30b3\u30fc\u30c9\u6587\u5b57\u306b <strong>0x5C(\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9)<\/strong> \u304c\u542b\u307e\u308c\u308b\u3068\u304d\u306b\u751f\u3058\u308b\u4e0d\u5177\u5408\u306b\u3064\u3044\u3066<\/p>\n<p><!--more--><\/p>\n<p>C\u8a00\u8a9e\u306a\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306f &quot; <strong>&bsol;<\/strong> &quot; \u3084 &quot; <strong>&yen;<\/strong> &quot; \u3092\u30e1\u30bf\u6587\u5b57\uff08\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9\uff09\u3068\u3057\u3066\u6271\u3044\u307e\u3059\u3002XML\u3084HTML,CSV\u3082 &quot; <strong>&bsol;<\/strong> &quot; \u3084 &quot; <strong>&yen;<\/strong> &quot; \u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9\u3068\u3057\u3066\u6271\u3046\u305f\u3081\u540c\u69d8\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h4>C\u8a00\u8a9e\u306e\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u4f8b<\/h4>\n<ul>\n<li><strong><code>&bsol;n<\/code><\/strong> : \u6539\u884c\u6587\u5b57<\/li>\n<li><strong><code>&bsol;0<\/code><\/strong> : nul\u6587\u5b57<\/li>\n<li><strong><code>&bsol;x1B<\/code><\/strong> : 16\u9032\u6570\u8868\u8a18<\/li>\n<\/ul>\n<p>&quot; <b>&bsol;<\/b> &quot; , &quot; <b>&yen;<\/b> &quot; \u306e ASCII\u6587\u5b57\u30b3\u30fc\u30c9 ( UTF-8\u30a8\u30f3\u30b3\u30fc\u30c9 ) \u306f <code>0x5C<\/code> \u3067\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3067Shift-JIS\u3067\u306f\u3001\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u6587\u5b57\u304c16bit\u306e\u4e2d\u306e\u4e0b\u4f4d\u30d0\u30a4\u30c8\u306b <strong><code>0x5C<\/code><\/strong> \u3092\u542b\u307f\u307e\u3059\u3002\u3061\u306a\u307f\u306bShift-JIS\u306f\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u95a2\u308f\u308a\u306a\u304f\u30d3\u30c3\u30b0\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u3068\u306a\u308a\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066 2\u30d0\u30a4\u30c8\u76ee \u306b <strong><code>0x5C<\/code><\/strong> \u304c\u51fa\u73fe\u3057\u307e\u3059\u30021\u30d0\u30a4\u30c8\u76ee\u306bASCII\u6587\u5b57\u3068\u91cd\u8907\u3059\u308b\u30b3\u30fc\u30c9\u3092\u907f\u3051\u308b\u3002\u305d\u308c\u304cShift-JIS\u306e\u4ed5\u639b\u3051\uff08\u7279\u5fb4\uff09\u3067\u3059\u3002\u7ffb\u3063\u30662\u30d0\u30a4\u30c8\u76ee\u306b\u306fASCII\u6587\u5b57\u3068\u91cd\u8907\u3059\u308b\u30b3\u30fc\u30c9\u304c\u73fe\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002\u305d\u308c\u304c Shift-JIS (2\u30d0\u30a4\u30c8\u6587\u5b57\u30b3\u30fc\u30c9) \u3068 ASCII\u6587\u5b57 (1\u30d0\u30a4\u30c8\u6587\u5b57\u30b3\u30fc\u30c9) \u304c\u6df7\u5728\u3059\u308b\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6271\u3046\u3068\u304d\u306e\u5f31\u70b9\u3067\u3059\u3002<\/p>\n<h4>0x5C\u3092\u542b\u3080\u6587\u5b57\u306e\u4f8b<\/h4>\n<table>\n<tbody>\n<tr>\n<th>\u6587\u5b57<\/th>\n<th>16\u9032\u6570\u30b3\u30fc\u30c9<\/th>\n<th>\u610f\u5473\u30fb\u7528\u4f8b<\/th>\n<\/tr>\n<tr>\n<td>\u2014<\/td>\n<td>0x815C<\/td>\n<td>\u534a\u89d2\u306e\u30c0\u30c3\u30b7\u30e5<\/td>\n<\/tr>\n<tr>\n<td>\u30bd<\/td>\n<td>0x835C<\/td>\n<td>\u5168\u89d2\u30ab\u30bf\u30ab\u30ca\u306e\u30bd<\/td>\n<\/tr>\n<tr>\n<td>\u69cb<\/td>\n<td>0x8D5C<\/td>\n<td>\u6a5f\u69cb<\/td>\n<\/tr>\n<tr>\n<td>\u5341<\/td>\n<td>0x8F5C<\/td>\n<td>\u6f22\u6570\u5b57\u306e\u5341<\/td>\n<\/tr>\n<tr>\n<td>\u8cbc<\/td>\n<td>0x935C<\/td>\n<td>\u4e0b\u8cbc\u3001\u76ee\u8cbc<\/td>\n<\/tr>\n<tr>\n<td>\u80fd<\/td>\n<td>0x945C<\/td>\n<td>\u6a5f\u80fd<\/td>\n<\/tr>\n<tr>\n<td>\u8868<\/td>\n<td>0x955C<\/td>\n<td>\u56f3\u8868\u3001\u5225\u8868<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>Shift-JIS\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306b\u542b\u307e\u308c\u308b 0x5c \u304c\u4e88\u60f3\u5916\u306e\u5f71\u97ff\uff08\u4e0d\u5177\u5408\uff09\u3092\u5f15\u304d\u8d77\u3053\u3059\u4f8b<\/h3>\n<pre class=\"lang:c highlight:0 decode:true \" >func_x();  \/\/ x\u6a5f\u80fd\r\nif (mode &gt; 0) { stop_x(); }<\/pre>\n<p>Shift-JIS\u306b\u672a\u5bfe\u5fdc\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\uff08\u8a00\u8a9e\u51e6\u7406\u7cfb\uff09\u306f\u300e\u80fd\u300f\u306e\uff12\u30d0\u30a4\u30c8\u76ee\u306e0x5C\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u6587\u5b57\u3068\u3057\u3066\u6271\u3044\u3001\u884c\u672b\u306e\u6539\u884c\u6587\u5b57(\u4f8b\u3048\u3070 CR \/ 0x0D )\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:c highlight:0 decode:true \" >func_x();  \/\/ x\u6a5f?\\?if (mode &gt; 0) { stop_x(); }<\/pre>\n<p>\u7d50\u679c\u3068\u3057\u3066\uff11\u884c\u76ee\u3068\uff12\u884c\u76ee\u304c\u9023\u7d50\u3055\u308c\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\uff12\u884c\u76ee\u3082\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3068\u307f\u306a\u3057\u307e\u3059\u3002<\/p>\n<p>\u6587\u5b57\u304c\u30a8\u30b9\u30b1\u30fc\u30d7\u3055\u308c\u305f\u5f8c\u306e\u60aa\u5f71\u97ff\u306f\u30b1\u30fc\u30b9\u30d0\u30a4\u30b1\u30fc\u30b9\u3067\u3059\u306e\u3067\u5341\u5206\u306b\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>C\/C++\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u304a\u3051\u308b0x5c\u554f\u984c\u306e\u56de\u907f\u7b56<\/h3>\n<ol>\n<li>Shift-JIS\u3092\u4f7f\u308f\u306a\u3044<\/li>\n<li>\u30b3\u30e1\u30f3\u30c8\u3092 <code>\/* \uff5e *\/<\/code> \u5f62\u5f0f\u306b\u7d71\u4e00\u3059\u308b<\/li>\n<li>\u30b3\u30e1\u30f3\u30c8\u306e\u672b\u5c3e\u306b\u53e5\u70b9\u3084\u5168\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u633f\u5165\u3059\u308b<\/li>\n<\/ol>\n<h3>\u95a2\u9023\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"\/tech\/index.php\/archives\/5870\">\u5186\u8a18\u53f7<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Shift-JIS\u30b3\u30fc\u30c9\u6587\u5b57\u306b 0x5C(\u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9) \u304c\u542b\u307e\u308c\u308b\u3068\u304d\u306b\u751f\u3058\u308b\u4e0d\u5177\u5408\u306b\u3064\u3044\u3066<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2100","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=2100"}],"version-history":[{"count":32,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2100\/revisions"}],"predecessor-version":[{"id":7442,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2100\/revisions\/7442"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}