{"id":17124,"date":"2023-11-24T11:52:09","date_gmt":"2023-11-24T03:52:09","guid":{"rendered":"https:\/\/www.bookcard.net\/wordpress\/?p=17124"},"modified":"2023-11-24T11:52:09","modified_gmt":"2023-11-24T03:52:09","slug":"utf8_big5_shiftjis_euckr_gb2312","status":"publish","type":"post","link":"https:\/\/www.bookcard.net\/wordpress\/utf8_big5_shiftjis_euckr_gb2312\/","title":{"rendered":"UTF8\/BIG5\/Shift-JIS\/EUC-KR\/GB2312\u5224\u5b9a"},"content":{"rendered":"<figure id=\"attachment_17125\" aria-describedby=\"caption-attachment-17125\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2023\/11\/UTF8_BIG5_ShiftJIS_EUCKR_GB2312.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-17125\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2023\/11\/UTF8_BIG5_ShiftJIS_EUCKR_GB2312.jpg\" alt=\"UTF8\/BIG5\/Shift-JIS\/EUC-KR\/GB2312\u5224\u5b9a\" width=\"1280\" height=\"800\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2023\/11\/UTF8_BIG5_ShiftJIS_EUCKR_GB2312.jpg 1280w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2023\/11\/UTF8_BIG5_ShiftJIS_EUCKR_GB2312-300x188.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2023\/11\/UTF8_BIG5_ShiftJIS_EUCKR_GB2312-768x480.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a><figcaption id=\"caption-attachment-17125\" class=\"wp-caption-text\">UTF8\/BIG5\/Shift-JIS\/EUC-KR\/GB2312\u5224\u5b9a<\/figcaption><\/figure>\n<p>\u4fc2\u96fb\u8166\u767c\u5c55\u521d\u6642\u5b9a\u7fa9\u5de6\u5957\u300eASCII\u78bc\u300f,\u5f97128\u5b57\u7b26,\u82f1\u6587\u52a0\u6578\u5b57\u7528\u55ae\u5b57\u7bc0BYTE. \u5f8c\u849e\u5404\u570b\u7686\u81ea\u5b9a\u300e\u5b57\u7b26\u7de8\u78bc\u300f,\u300eShift-JIS\/EUC-KR\/BIG5\/GB2312\u300f\u7686\u5360\u4e24\u5b57\u7bc0WORD,\u7ed3\u679c\u4fc2\u7de8\u78bc\u91cd\u53e0.\u6240\u4ee5\u5148\u6709\u4e82\u78bc.<\/p>\n<table width=\"553\">\n<tbody>\n<tr>\n<td width=\"184\">\u5b57<\/td>\n<td width=\"184\">Low 8bit<\/td>\n<td width=\"184\">Height 8bit<\/td>\n<\/tr>\n<tr>\n<td width=\"184\">ASCII-128<\/td>\n<td width=\"184\">0 ~ 0x7F<\/td>\n<td width=\"184\">N\/A<\/td>\n<\/tr>\n<tr>\n<td width=\"184\">BIG5\u6f22\u5b57<\/td>\n<td width=\"184\">0xA1 ~ 0xF9<\/td>\n<td width=\"184\">0x40 ~ 0x7E<\/p>\n<p>0xA1 ~ 0xFE<\/td>\n<\/tr>\n<tr>\n<td width=\"184\">SHIFT-JIS\u65e5\u5b57<\/td>\n<td width=\"184\">0x81~0x9f<\/p>\n<p>0xe0~0xef<\/td>\n<td width=\"184\">0x40~0x7e<\/p>\n<p>0x80~0xfc<\/td>\n<\/tr>\n<tr>\n<td width=\"184\">EUC-KR\u97d3\u5b57<\/td>\n<td width=\"184\">0xA1~0xFE<\/td>\n<td width=\"184\">0xA1~0xFE<\/td>\n<\/tr>\n<tr>\n<td width=\"184\">GB2312\u4e2d\u5b57<\/td>\n<td width=\"184\">0xA1 ~ 0xF7<\/td>\n<td width=\"184\">0xA1 ~ 0xFE<\/td>\n<\/tr>\n<tr>\n<td width=\"184\">GBK\u4e2d\u5b57<\/td>\n<td width=\"184\">0x81 ~ 0xFE<\/td>\n<td width=\"184\">0x40 ~ 0xFE<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u300eUTF-8\u300f\u4fc2Unicode\u300e\u842c\u570b\u78bc\u300f\u8b8a\u9ad4,\u9996byte\u524d\u7f00\u6a19\u8a18\u5b57\u7b26\u9577\u5ea6.\u524d\u7f000\u9577\u5ea61, \u524d\u7f00110\u9577\u5ea62, \u524d\u7f001110\u9577\u5ea63.\u4ee5\u6b64\u7c7b\u63a8.\u5c3e\u968fbyte\u524d\u7f00\u7686\u6a19\u8a1801.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"425\">\u300eUTF-8\u300fbin<\/td>\n<td width=\"128\">\u9577\u5ea6<\/td>\n<\/tr>\n<tr>\n<td width=\"425\">bin:0xxxxxxx<\/td>\n<td width=\"128\">1<\/td>\n<\/tr>\n<tr>\n<td width=\"425\">bin:110xxxxx 10xxxxxx<\/td>\n<td width=\"128\">2<\/td>\n<\/tr>\n<tr>\n<td width=\"425\">bin:1110xxxx 10xxxxxx 10xxxxxx<\/td>\n<td width=\"128\">3<\/td>\n<\/tr>\n<tr>\n<td width=\"425\">bin:11110xxx 10xxxxxx 10xxxxxx 10xxxxxx<\/td>\n<td width=\"128\">4<\/td>\n<\/tr>\n<tr>\n<td width=\"425\">bin:111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx<\/td>\n<td width=\"128\">5<\/td>\n<\/tr>\n<tr>\n<td width=\"425\">bin:1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx<\/td>\n<td width=\"128\">6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>UTF-8\u5224\u5b9a<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"277\">if ((utf8[0] &amp; 0x80) == 0x00)<\/p>\n<p>return 1;<\/td>\n<td width=\"277\">\u503c\u5c0f\u65bc0x80\u7684ASCII\u5b57\u5143<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">if ((utf8[0] &amp; 0xE0) == 0xC0\u00a0 &amp;&amp;<\/p>\n<p>(utf8[1] &amp; 0xC0) == 0x80)<\/p>\n<p>return 2;<\/td>\n<td width=\"277\">2\u5b57\u7bc0UTF-8\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">if ((utf8[0] &amp; 0xF0) == 0xE0 &amp;&amp;<\/p>\n<p>(utf8[1] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[2] &amp; 0xC0) == 0x80)<\/p>\n<p>return 3;<\/td>\n<td width=\"277\">3\u5b57\u7bc0UTF-8\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">if ((utf8[0] &amp; 0xF8) == 0xF0 &amp;&amp;<\/p>\n<p>(utf8[1] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[2] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[3] &amp; 0xC0) == 0x80)<\/p>\n<p>return 4;<\/td>\n<td width=\"277\">4\u5b57\u7bc0UTF-8\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">if ((utf8[0] &amp; 0xFC) == 0xF8 &amp;&amp;<\/p>\n<p>(utf8[1] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[2] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[3] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[4] &amp; 0xC0) == 0x80)<\/p>\n<p>return 5;<\/td>\n<td width=\"277\">5\u5b57\u7bc0UTF-8\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td width=\"277\">if ((utf8[0] &amp; 0xFE) == 0xFC &amp;&amp;<\/p>\n<p>(utf8[1] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[2] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[3] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[4] &amp; 0xC0) == 0x80 &amp;&amp;<\/p>\n<p>(utf8[5] &amp; 0xC0) == 0x80)<\/p>\n<p>return 6;<\/td>\n<td width=\"277\">6\u5b57\u8282UTF-8\u5b57\u7b26<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u503c\u5c0f\u65bc0x80\u4fc2ASCII\u5b57\u7b26\u96c6<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">if ((string[0] &amp; 0x80) == 0x00)<\/p>\n<p>return 1;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>BIG5\u6f22\u5b57\u7b26\u96c6\u7de8\u78bc\u8303\u570d<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">if ((string[0] &gt;= 0xA1 &amp;&amp; string[0] &lt;= 0xF9) &amp;&amp;<\/p>\n<p>(string[1] &gt;= 0x40 &amp;&amp; string[1] &lt;= 0x7E ||<\/p>\n<p>string[1] &gt;= 0xA1 &amp;&amp; string[1] &lt;= 0xFE) )<\/p>\n<p>return 2;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>SHIFT-JIS\u65e5\u5b57\u7b26\u96c6\u7de8\u78bc\u8303\u570d<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">if ((string[0] &gt;= 0x81 &amp;&amp; string[0] &lt;= 0xF9 ||<\/p>\n<p>string[0] &gt;= 0xe0 &amp;&amp; string[0] &lt;= 0xef) &amp;&amp;<\/p>\n<p>(string[1] &gt;= 0x40 &amp;&amp; string[1] &lt;= 0x7E ||<\/p>\n<p>string[1] &gt;= 0xA1 &amp;&amp; string[1] &lt;= 0xFE) )<\/p>\n<p>return 2;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>EUC-KR\u97d3\u5b57\u7b26\u96c6\u7de8\u78bc\u8303\u570d<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">if ((string[0] &gt;= 0xA1 &amp;&amp; string[0] &lt;= 0xFE) &amp;&amp;<\/p>\n<p>(string[1] &gt;= 0xA1 &amp;&amp; string[1] &lt;= 0xFE))<\/p>\n<p>return 2;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>GB2312\u4e2d\u5b57\u7b26\u96c6\u7de8\u78bc\u8303\u570d<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">if ((string[0] &gt;= 0xA1 &amp;&amp; string[0] &lt;= 0xF7) &amp;&amp;<\/p>\n<p>(string[1] &gt;= 0XA1 &amp;&amp; string[1] &lt;= 0XFE) )<\/p>\n<p>return 2;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>GBK\u4e2d\u5b57\u7b26\u96c6\u7de8\u78bc\u8303\u570d<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">if ((string[0] &gt;= 0x81 &amp;&amp; string[0] &lt;= 0xFE) &amp;&amp;<\/p>\n<p>(string[1] &gt;= 0XA0 &amp;&amp; string[1] &lt;= 0XFE) )<\/p>\n<p>return 2;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4fc2\u96fb\u8166\u767c\u5c55\u521d\u6642\u5b9a\u7fa9\u5de6\u5957\u300eASCII\u78bc\u300f,\u5f97128\u5b57\u7b26,\u82f1\u6587\u52a0\u6578\u5b57\u7528\u55ae\u5b57\u7bc0BYTE. \u5f8c\u849e\u5404\u570b\u7686\u81ea\u5b9a\u300e\u5b57\u7b26\u7de8\u78bc\u300f &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/utf8_big5_shiftjis_euckr_gb2312\/\" class=\"more-link\">\u7e7c\u7e8c\u95b1\u8b80 <span class=\"screen-reader-text\">UTF8\/BIG5\/Shift-JIS\/EUC-KR\/GB2312\u5224\u5b9a<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[42],"class_list":["post-17124","post","type-post","status-publish","format-standard","hentry","category-pc","tag-computer","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/17124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/comments?post=17124"}],"version-history":[{"count":1,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/17124\/revisions"}],"predecessor-version":[{"id":17126,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/17124\/revisions\/17126"}],"wp:attachment":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/media?parent=17124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/categories?post=17124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/tags?post=17124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}