{"id":175802,"date":"2020-04-10T11:08:01","date_gmt":"2020-04-10T03:08:01","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=175802"},"modified":"2020-03-29T09:08:31","modified_gmt":"2020-03-29T01:08:31","slug":"encoding-knowledge","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/encoding-knowledge.html","title":{"rendered":"\u4f5c\u4e3a\u4e00\u4e2a\u7a0b\u5e8f\u5458\uff0c\u544a\u8bc9\u4f60\u4e00\u4e9b\u7f16\u7801\u77e5\u8bc6"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u8ba1\u7b97\u673a\u53ea\u8ba4 0 \u548c 1 \uff0c\u6240\u6709\u7684\u5f71\u50cf\u548c\u5b57\u7b26\u6700\u7ec8\u90fd\u4f1a\u8f6c\u6362\u6210\u8ba1\u7b97\u673a\u80fd\u591f\u8ba4\u8bc6\u7684\u4e8c\u8fdb\u5236\u3002\u4e00\u4e2a\u4e8c\u8fdb\u5236\u4f4d\uff08bit\uff09\u53ef\u4ee5\u8868\u793a\u4e24\u79cd\u72b6\u6001 0 \u548c 1 \uff0c\u4e00\u4e2a\u5b57\u8282(byte)\u7531\u516b\u4e2a\u4e8c\u8fdb\u5236\u4f4d\u7ec4\u6210\uff0c\u6240\u4ee5\u4e00\u4e2a\u5b57\u8282\u4e00\u5171\u53ef\u4ee5\u8868\u793a256\uff08 2^8 \uff09\u79cd\u72b6\u6001\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5728\u8c0d\u6218\u5267\u91cc\uff0c\u6211\u4eec\u7ecf\u5e38\u770b\u5230\u8fd9\u6837\u4e00\u4e2a\u6865\u6bb5\uff0c\u7279\u5de5\u4eba\u5458\uff0c\u5343\u8f9b\u4e07\u82e6\u62ff\u5230\u4e00\u6761\u4fe1\u606f\uff0c\u6253\u5f00\u4e00\u770b\u662f\u4e00\u4e32\u6570\u5b57\uff0c\u7136\u540e\u8d76\u7d27\u8dd1\u5230\u4e00\u4e2a\u79d8\u5bc6\u5730\u65b9\uff0c\u62ff\u51fa\u4e00\u4e2a\u5bc6\u7801\u672c\uff08\u4e5f\u53ef\u80fd\u662f\u4e00\u672c\u5510\u8bd7\u9009\uff09\uff0c\u6309\u7167\u4e00\u5b9a\u89c4\u5219\uff08\u53ea\u6709\u81ea\u5df1\u4eba\u77e5\u9053\uff09\uff0c\u6bd4\u5982\u7b2c\u4e00\u4e2a\u6570\u5b57\u8868\u793a\u9875\u6570\uff0c\u7b2c\u4e8c\u4e2a\u6570\u5b57\u8868\u793a\u884c\u6570\uff0c\u7b2c\u4e09\u4e2a\u6570\u5b57\u8868\u793a\u7b2c\u51e0\u4e2a\u5b57\uff0c\u9010\u4e00\u5c06\u4fe1\u606f\u7ffb\u8bd1\u51fa\u6765\u3002\u5982\u679c\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u7528\u4e86\u9519\u8bef\u7684\u5bc6\u7801\u672c\uff0c\u6216\u8005\u4e0d\u77e5\u9053\u89c4\u5219\uff0c\u90a3\u4e48\u5c06\u4f1a\u89e3\u7801\u5931\u8d25\u3002 \u8ba1\u7b97\u673a\u7684\u7f16\u89e3\u7801\u8fc7\u7a0b\u8ddf\u4e0a\u9762\u7684\u8fc7\u7a0b\u662f\u4e00\u6837\u4e00\u6837\u7684\u3002<\/p>\n \u8ba1\u7b97\u673a\u53ea\u8ba4 0 \u548c 1 \uff0c\u6240\u6709\u7684\u5f71\u50cf\u548c\u5b57\u7b26\u6700\u7ec8\u90fd\u4f1a\u8f6c\u6362\u6210\u8ba1\u7b97\u673a\u80fd\u591f\u8ba4\u8bc6\u7684\u4e8c\u8fdb\u5236\u3002\u4e00\u4e2a\u4e8c\u8fdb\u5236\u4f4d\uff08bit\uff09\u53ef\u4ee5\u8868\u793a\u4e24\u79cd\u72b6\u6001 0 \u548c 1 \uff0c\u4e00\u4e2a\u5b57\u8282(byte)\u7531\u516b\u4e2a\u4e8c\u8fdb\u5236\u4f4d\u7ec4\u6210\uff0c\u6240\u4ee5\u4e00\u4e2a\u5b57\u8282\u4e00\u5171\u53ef\u4ee5\u8868\u793a256\uff08 2^8 \uff09\u79cd\u72b6\u6001\u3002\u5982\u679c\u6211\u4eec\u89c4\u5b9a\u6bcf\u79cd\u72b6\u6001\u4ee3\u8868\u4e00\u4e2a\u5b57\u7b26\uff0c\u90a3\u4e48\u4e00\u4e2a\u5b57\u8282\u5c31\u53ef\u4ee5\u8868\u8fbe\u51fa 256 \u4e2a\u5b57\u7b26\u3002<\/p>\n ASCII<\/strong><\/div>\n \u8ba1\u7b97\u673a\u662f\u7531\u7f8e\u56fd\u4eba\u53d1\u660e\u7684\uff0c\u6240\u4ee5\u5728\u6700\u521d\u8bbe\u8ba1\u7f16\u7801\u7684\u65f6\u5019\uff0c\u5c31\u53ea\u8003\u8651\u4e86\u82f1\u6587\u7684\u7f16\u7801\u3002\u82f1\u6587\u5b57\u7b26\u5f88\u5c11\uff0c\u52a0\u4e0a\u4e00\u4e9b\u7279\u6b8a\u5b57\u7b26\uff0c\u4e00\u5171\u4e5f\u5c31100\u4e2a\u5de6\u53f3\uff0c\u786e\u5207\u7684\u8bf4\u662f128\u4e2a\u3002\u8fd9\u6837\u7684\u8bdd\u7528\u4e00\u4e2a\u5b57\u8282\u8fdb\u884c\u7f16\u7801\u5c31\u5b8c\u5168\u591f\u4e86\uff0c\u4e0d\u4ec5\u591f\u7528\u4e86\uff0c\u800c\u4e14\u8fd8\u5bcc\u88d5\u51fa\u4e00\u4f4d\uff0c\u5373\u7b2c\u4e00\u4f4d\u4e00\u76f4\u6ca1\u6709\u53c2\u4e0e\u7f16\u7801\uff0c\u7edf\u4e00\u5b9a\u4e3a 0 \u3002\u8fd9\u5c31\u662f\u6240\u8c13\u7684 ASCII \u7f16\u7801\u3002\u5728 ASCII \u7f16\u7801\u4e2d\uff0c\u7a7a\u683c SPACE \u662f 32 \uff08\u4e8c\u8fdb\u5236 00100000 \uff09\uff0c\u5927\u5199\u7684\u5b57\u6bcd A \u662f 65 \uff08\u4e8c\u8fdb\u5236 01000001 \uff09\u3002<\/p>\n \u975eASCII<\/strong><\/div>\n \u968f\u7740\u8ba1\u7b97\u673a\u7684\u666e\u53ca\uff0c\u6b27\u6d32\u4e5f\u5f00\u59cb\u666e\u53ca\u8ba1\u7b97\u673a\uff0c\u6b27\u6d32\u4eba\u53d1\u73b0 ASCII \u89c4\u5b9a\u7684 128 \u4e2a\u5b57\u7b26\u4e0d\u80fd\u6ee1\u8db3\u4ed6\u4eec\u7684\u4f7f\u7528\uff0c\u6bd4\u5982\uff0c\u5728\u6cd5\u8bed\u4e2d\uff0c\u5b57\u6bcd\u4e0a\u65b9\u6709\u6ce8\u97f3\u7b26\u53f7\uff0c\u5c31\u65e0\u6cd5\u7528 ASCII \u7801\u8868\u793a\u3002\u4e8e\u662f\uff0c\u4e00\u4e9b\u6b27\u6d32\u56fd\u5bb6\u5c31\u51b3\u5b9a\uff0c\u628a\u5b57\u8282\u4e2d\u95f2\u7f6e\u7684\u7b2c\u4e00\u4f4d\u7f16\u5165\u65b0\u7684\u7b26\u53f7\u3002\u6bd4\u5982\uff0c\u6cd5\u8bed\u4e2d\u7684 \u00e9 \u7684\u7f16\u7801\u4e3a 130 \uff08\u4e8c\u8fdb\u5236 10000010 \uff09\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u8fd9\u4e9b\u6b27\u6d32\u56fd\u5bb6\u4f7f\u7528\u7684\u7f16\u7801\u4f53\u7cfb\uff0c\u6700\u591a\u53ef\u4ee5\u8868\u793a 256 \u4e2a\u7b26\u53f7\u3002\u8fd9\u5c31\u662f\u5927\u5bb6\u7ecf\u5e38\u89c1\u5230\u7684 ISO-8859-1 \u7f16\u7801\uff0c\u4e5f\u53eb Latin1 \u7f16\u7801\u3002<\/p>\n \u4e2d\u6587\u7f16\u7801<\/strong><\/div>\n \u968f\u7740\u8ba1\u7b97\u673a\u7684\u666e\u53ca\uff0c\u56fd\u4eba\u4e5f\u5f00\u59cb\u4f7f\u7528\u8ba1\u7b97\u673a\uff0c\u4f46\u662f\u53d1\u73b0\u6309\u7167\u4e4b\u524d\u7684\u7f16\u7801\u65b9\u5f0f\uff0c\u6839\u672c\u5c31\u6ca1\u6709\u6c49\u5b57\u4ec0\u4e48\u4e8b\u513f\uff0c\u4e5f\u5c31\u662f\u8ba1\u7b97\u673a\u6839\u672c\u6ca1\u529e\u6cd5\u8ba4\u8bc6\u6c49\u5b57\u3002<\/p>\n GB2312<\/strong><\/div>\n \u4e3a\u4e86\u80fd\u591f\u8ba9\u8ba1\u7b97\u673a\u8ba4\u8bc6\u6c49\u5b57\uff0c\u6211\u4eec\u51b3\u5b9a\u5bf9\u6c49\u5b57\u8fdb\u884c\u7f16\u7801\uff0c\u672c\u7740\u6562\u60f3\u6562\u5e72\u7684\u7cbe\u795e\uff0c\u6211\u4eec\u89c4\u5b9a\u7528\u4e24\u4e2a\u5b57\u8282\u8868\u793a\u4e00\u4e2a\u6c49\u5b57\u3002<\/p>\n \u5177\u4f53\u89c4\u5219\u662f\u8fd9\u6837\u7684\uff1a\u4e00\u4e2a\u5c0f\u4e8e 127 \u7684\u5b57\u8282\u4ee3\u8868\u7684\u610f\u4e49\u4e0e\u539f\u6765\u7684 ASCII \u76f8\u540c\uff0c\u4f46\u4e24\u4e2a\u5927\u4e8e 127\u7684\u5b57\u8282\u8fde\u5728\u4e00\u8d77\u65f6\uff0c\u5c31\u8868\u793a\u8fd9\u662f\u4e00\u4e2a\u6c49\u5b57\uff0c\u524d\u9762\u7684\u4e00\u4e2a\u5b57\u8282\u79f0\u4e3a\u9ad8\u5b57\u8282\uff0c\u540e\u9762\u4e00\u4e2a\u5b57\u8282\u79f0\u4e3a\u4f4e\u5b57\u8282\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u7ec4\u5408\u51fa 6763 \u4e2a\u7b80\u4f53\u6c49\u5b57\u3002\u8fd9\u5c31\u662f\u5927\u5bb6\u5e38\u8bf4\u7684 GB2312 \u7f16\u7801\u3002<\/p>\n GBK<\/strong><\/div>\n \u5f88\u663e\u7136 GB2312 \u7f16\u7801\u7684 6763 \u4e2a\u6c49\u5b57\uff0c\u5e76\u4e0d\u80fd\u9002\u5e94\u6240\u6709\u7684\u4f7f\u7528\u573a\u666f\uff0c\u6bd4\u5982\u201c\u5586\u201d\u5b57\u5c31\u4e0d\u518d\u5176\u4e2d\uff0c\u4e8e\u662f\u5728 GB2312 \u7684\u57fa\u7840\u4e0a\u53c8\u8fdb\u884c\u4e86\u65b0\u7684\u6269\u5c55\uff0c\u89c4\u5b9a\u53ea\u8981\u7b2c\u4e00\u4e2a\u5b57\u8282\u662f\u5927\u4e8e 127 \u7684\u5c31OK\uff0c\u81f3\u4e8e\u7b2c\u4e8c\u4e2a\u5b57\u8282\u662f\u5927\u4e8e 127 \u8fd8\u662f\u5c0f\u4e8e 127 \u90fd\u65e0\u6240\u8c13\u4e86\u3002\u7ecf\u8fc7\u8fd9\u6837\u7684\u6539\u52a8\u4e4b\u540e\uff0c\u6536\u5f55\u7684\u6c49\u5b57\u53ca\u7b26\u53f7\u5c31\u53ef\u4ee5\u8fbe\u5230 2W \u591a\u4e2a\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u5e38\u8bf4\u7684 GBK \u7f16\u7801\u3002<\/p>\n \u518d\u540e\u6765\uff0c\u4eba\u4eec\u7ee7\u7eed\u5bf9\u7b2c\u4e8c\u4e2a\u5b57\u8282\u8fdb\u884c\u6269\u5c55\uff0c\u53d1\u5c55\u51fa\u4e86 GB18030 \u7f16\u7801\uff0c\u6bd4 GBK \u53c8\u591a\u51fa\u4e86\u4e00\u4e9b\u5b57\u7b26\u7f16\u7801\u3002<\/p>\n \u81f3\u6b64\uff0c\u6240\u6709\u7684\u6c49\u5b57\u7f16\u7801\u90fd\u662f\u7528\u4e24\u4e2a\u5b57\u8282\u8868\u793a\u7684\uff0c\u4f46\u662f\u82f1\u6587\u662f\u7528\u4e00\u4e2a\u5b57\u8282\u8868\u793a\u3002\u4e0a\u4e86\u4e00\u4e9b\u5e74\u7eaa\u7684\u7a0b\u5e8f\u5458\u90fd\u4f53\u9a8c\u8fc7\uff0c\u4e00\u4e2a\u6c49\u5b57\u7b97\u4e24\u4e2a\u82f1\u6587\u5b57\u7b26\u7684\u7ecf\u5386\u3002<\/p>\n BIG-5<\/strong><\/div>\n \u4e0a\u9762\u63d0\u5230\u7684\u90fd\u662f\u7b80\u4f53\u4e2d\u6587\u7f16\u7801\uff0c\u867d\u7136 GBK \u53ca GB18030 \u5305\u542b\u4e86\u90e8\u5206\u7e41\u4f53\u5b57\uff0c\u4f46\u662f\u4e5f\u4e0d\u5168\u9762\uff0c\u4e8e\u662f\u53f0\u6e7e\u540c\u80de\u5c31\u53d1\u4e86\u4e13\u95e8\u652f\u6301\u7e41\u4f53\u5b57\u7684 Big5 \u7f16\u7801\uff0c\u4e5f\u5c31\u662f\u5927\u5bb6\u7ecf\u5e38\u8bf4\u7684\u5927\u4e94\u7801\u3002<\/p>\n \u4e00\u4e2a\u5c0f\u95ee\u9898<\/strong><\/div>\n \u4e0d\u77e5\u9053\u5927\u5bb6\u6709\u6ca1\u6709\u6ce8\u610f\u5230\u4e00\u4e2a\u95ee\u9898\uff0c\u5728\u5355\u5b57\u8282\u7f16\u7801\u7684\u65f6\u5019\uff0c\u5bf9\u4e8e\u90a3\u4e9b\u5927\u4e8e 127 \u5c0f\u4e8e 256 \u7684\u7f16\u7801\uff0c\u5728\u4e0d\u540c\u7684\u56fd\u5bb6\u4ee3\u8868\u7684\u5b57\u6bcd\u5f88\u53ef\u80fd\u4e0d\u4e00\u6837\u3002\u6bd4\u5982\uff0c 130 \u5728\u6cd5\u8bed\u7f16\u7801\u4e2d\u4ee3\u8868\u4e86 \u00e9 \uff0c\u5728\u5e0c\u4f2f\u6765\u8bed\u7f16\u7801\u4e2d\u5374\u4ee3\u8868\u4e86\u5b57\u6bcd Gimel (\u05d2) \uff0c\u5728\u4fc4\u8bed\u7f16\u7801\u4e2d\u53c8\u4f1a\u4ee3\u8868\u53e6\u4e00\u4e2a\u7b26\u53f7\u3002\u5728\u6c49\u5b57\u7684\u53cc\u5b57\u8282\u7f16\u7801\u4e2d\u4e5f\u5b58\u5728\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u6bd4\u5982 BIG5 \u7f16\u7801\u8ddf GBK \u7f16\u7801\u90fd\u662f\u53cc\u5b57\u8282\u7f16\u7801\uff0c\u4f46\u662f\u4ee3\u8868\u7684\u6c49\u5b57\u5374\u4e0d\u4e00\u6837\u3002<\/p>\n \u8fd9\u5c31\u76f8\u5f53\u4e8e\uff0c\u540c\u6837\u4e00\u4e32\u4e8c\u8fdb\u5236\u6570\u503c\uff0cA\u7279\u5de5\u7ec4\u7ec7\u6309\u7167\u4ed6\u4eec\u7684\u89c4\u5219\u89e3\u6790\u51fa\u6765\u53ef\u80fd\u662f\u201c\u4f60\u597d\u201d\uff0c\u800cB\u7279\u5de5\u7ec4\u7ec7\u6309\u7167\u4ed6\u4eec\u7684\u89c4\u5219\u89e3\u6790\u51fa\u6765\u53ef\u80fd\u662f\u201c\u6eda\u86cb\u201d\u3002\u7279\u5de5\u7ec4\u7ec7\u4e4b\u95f4\u7684\u7ffb\u8bd1\u6807\u51c6\u4e0d\u4e00\u6837\u662f\u76f8\u5f53\u6709\u5fc5\u8981\u7684\uff0c\u4f46\u662f\u8ba1\u7b97\u673a\u7684\u7f16\u7801\u89c4\u5219\u5982\u679c\u5404\u4e0d\u76f8\u540c\u5c31\u6bd4\u8f83\u9ebb\u70e6\u4e86\u3002\u6bd4\u5982\u4f60\u8ddf\u53f0\u6e7e\u7684\u5fd7\u73b2\u59d0\u59d0\u804a\u5929\uff0c\u5fd7\u73b2\u59d0\u59d0\u7528 BIG5 \u7f16\u7801\u7ed9\u4f60\u53d1\u4e86\u4e00\u5c01\u4fe1\uff0c\u7136\u540e\u4f60\u7528 GBK \u53bb\u89e3\u7801\uff0c\u2026\u2026\uff0c\u4e5f\u8bb8\u5c31\u6ca1\u6709\u7136\u540e\u4e86\u3002<\/p>\n Unicode<\/strong><\/div>\n \u4e3a\u4e86\u89e3\u51b3\u4e0a\u9762\u7684\u95ee\u9898\uff0c\u6709\u4e2a\u53eb ISO \u7684\u56fd\u9645\u6807\u51c6\u7ec4\u7ec7\uff0c\u51b3\u5b9a\u653e\u5f03\u6240\u6709\u533a\u57df\u6027\u7f16\u7801\uff0c\u5982 BIG5 \uff0c GBK \u7b49\uff0c\u91cd\u65b0\u5236\u5b9a\u4e00\u4e2a\u65b0\u7684\u7f16\u7801\uff0c\u8fd9\u4e2a\u7f16\u7801\u96c6\u5c06\u5305\u542b\u6240\u6709\u5b57\u7b26\u7684\u7f16\u7801\uff0c\u8fd9\u6837\u5927\u5bb6\u5c31\u90fd\u7edf\u4e00\u4e86\uff0c\u8fd9\u5957\u7f16\u7801\u7684\u82f1\u6587\u5168\u79f0\u201cUniversal Multiple-Octet Coded Character Set\u201d\uff0c\u7b80\u79f0UCS, \u4fd7\u79f0 \u201cUnicode\u201c\u3002 Unicode \u7684\u51fa\u73b0\u76f8\u5f53\u4e8e\u79e6\u59cb\u7687\u5bf9\u5ea6\u91cf\u8861\u8ddf\u8d27\u5e01\u8fdb\u884c\u4e86\u7edf\u4e00\u3002<\/p>\n Unicdoe \u6309\u7167\u65e5\u5e38\u5b57\u7b26\u7684\u4f7f\u7528\u9891\u7e41\u5ea6\u5212\u5206\u4e86 17 \u4e2a\u5e73\u9762\uff0c\u7f16\u53f7\u4e3a 0-16 \uff0c 0 \u53f7\u5e73\u9762\u79f0\u4e3a\u57fa\u672c\u591a\u8bed\u8a00\u5e73\u9762\uff08Basic Multilingual Plane\uff0c\u7b80\u79f0 BMP \uff09\uff0c\u5305\u542b\u4e86\u65e5\u5e38\u4f7f\u7528\u6700\u9891\u7e41\u7684\u5b57\u7b26\uff0c\u7f16\u7801\u8303\u56f4\u4ece 0000 \u5230 FFFF \uff0c\u8fd9\u6837\u8be5\u5e73\u9762\u53ef\u4ee5\u8868\u793a 2^16=65536 \u4e2a\u5b57\u7b26\uff1b\u5176\u5b83\u5e73\u9762\u7684\u7f16\u7801\u8303\u56f4\u4e5f\u662f\u4ece 0000 \u5230 FFFF \uff0c\u6240\u4ee5\u5176\u5b83\u5e73\u9762\u4e5f\u53ef\u4ee5\u7f16\u7801 65535 \u4e2a\u5b57\u7b26\uff0c\u8fd9\u6837 17 \u4e2a\u5e73\u9762\u4e00\u5171\u53ef\u4ee5\u7f16\u7801 17\u00d765,536 = 1,114,112 \u4e2a\u7b26\u53f7\u3002<\/p>\n \u6211\u4eec\u6700\u5e38\u7528\u7684 Unicode \u7f16\u7801\u4f7f\u7528\u7684\u662f\u591a\u8bed\u8a00\u5e73\u9762\u7684\u7f16\u7801\uff0c\u5373\u6240\u6709\u5b57\u7b26\u90fd\u7528\u4e24\u4e2a\u5b57\u8282\u8fdb\u884c\u7f16\u7801\uff08\u5176\u5b83\u5e73\u9762\u53ef\u80fd\u9700\u8981\u4e09\u4e2a\u6216\u56db\u4e2a\u5b57\u8282\uff09\u3002\u4e3e\u4e2a\u4f8b\u5b50\u6bd4\u5982\u4e2d\u56fd\u7684'\u4e2d'\u5b57 Unicode \u7801\u662f 4E2D \uff0c\u5c0f\u5199'a'\u7684 Unicode \u7801\u662f 0061 . \u7b2c\u4e8c\u4e2a\u95ee\u9898\u5c31\u662f\u8ba1\u7b97\u673a\u5982\u4f55\u77e5\u9053\u8fd9\u662f Unicode \u7f16\u7801\u8fd8\u662f ASCII \u7f16\u7801\uff0c\u4e5f\u5c31\u662f 2 \u4e2a\u5b57\u8282\u8868\u793a\u7684\u4e00\u4e2a\u5b57\u7b26\uff0c\u8fd8\u662f 2 \u4e2a\u5b57\u7b26\u5462\u3002<\/p>\n UTF<\/strong><\/div>\n UTF \u7684\u5168\u79f0\u662f Unicode Transformation Format \uff0c\u4e5f\u5c31\u662f Unicode \u7684\u8f6c\u6362\u683c\u5f0f\u3002\u4e0a\u9762\u63d0\u5230\u4e86\uff0c\u5982\u679c\u76f4\u63a5\u4f7f\u7528 Unicode \u7801\u8fdb\u884c\u5b58\u50a8\u4f1a\u5b58\u5728\u6d6a\u8d39\u7a7a\u95f4\u7684\u95ee\u9898\uff0c\u800c UTF-8 \u7684\u51fa\u73b0\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3\u8be5\u95ee\u9898\uff0c UTF-8 \u4f7f\u7528\u53d8\u957f\u7684\u65b9\u5f0f\u5b58\u50a8 Unicode \u7801\uff0c\u4e5f\u5c31\u662f\u82f1\u6587\u5b57\u7b26\u7ee7\u7eed\u4f7f\u7528\u4e00\u4e2a\u5b57\u8282\u8fdb\u884c\u5b58\u50a8\uff0c\u4f46\u662f\u6c49\u5b57\u8981\u4f7f\u7528 3 \u4e2a\u5b57\u8282\u3002\u90a3\u4e48 UTF-8 \u662f\u5982\u4f55\u505a\u5230\u7684\u5462\u3002<\/p>\n \u9996\u5148\uff0c\u5bf9\u4e8e\u5355\u5b57\u8282\u7684\u7b26\u53f7\uff0c\u5b57\u8282\u7684\u7b2c\u4e00\u4f4d\u8bbe\u4e3a 0 \uff0c\u540e\u9762 7 \u4f4d\u4e3a\u8fd9\u4e2a\u7b26\u53f7\u7684 Unicode \u7801\u3002\u56e0\u6b64\u5bf9\u4e8e\u82f1\u8bed\u5b57\u6bcd\uff0c UTF-8 \u7f16\u7801\u548c ASCII \u7801\u662f\u76f8\u540c\u7684\u3002<\/p>\n \u5176\u6b21\uff0c\u5bf9\u4e8e n \u5b57\u8282\u7684\u7b26\u53f7\uff08 n > 1 \uff09\uff0c\u7b2c\u4e00\u4e2a\u5b57\u8282\u7684\u524d n \u4f4d\u90fd\u8bbe\u4e3a 1 \uff0c\u7b2c n + 1 \u4f4d\u8bbe\u4e3a 0 \uff0c\u540e\u9762\u5b57\u8282\u7684\u524d\u4e24\u4f4d\u4e00\u5f8b\u8bbe\u4e3a 10 \u3002\u5269\u4e0b\u7684\u6ca1\u6709\u63d0\u53ca\u7684\u4e8c\u8fdb\u5236\u4f4d\uff0c\u5168\u90e8\u4e3a\u8fd9\u4e2a\u7b26\u53f7\u7684 Unicode\u7801\u3002 Unicode\u7b26\u53f7\u8303\u56f4\uff08\u5341\u516d\u8fdb\u5236\uff09 UTF-8\u7f16\u7801\u65b9\u5f0f\uff08\u4e8c\u8fdb\u5236\uff09<>pre \u6839\u636e\u4e0a\u8868\uff0c\u5bf9 UTF-8 \u7f16\u7801\u8fdb\u884c\u89e3\u8bfb\u4f1a\u53d1\u73b0\uff0c\u5982\u679c\u4e00\u4e2a\u5b57\u8282\u7684\u7b2c\u4e00\u4f4d\u662f 0 \uff0c\u5219\u8fd9\u4e2a\u5b57\u8282\u5355\u72ec\u5c31\u662f\u4e00\u4e2a\u5b57\u7b26\uff1b\u5982\u679c\u7b2c\u4e00\u4f4d\u662f 1 \uff0c\u5219\u8fde\u7eed\u6709\u591a\u5c11\u4e2a 1 \uff0c\u5c31\u8868\u793a\u5f53\u524d\u5b57\u7b26\u5360\u7528\u591a\u5c11\u4e2a\u5b57\u8282\u3002<\/p>\n \u4e3e\u4e2a\u4f8b\u5b50<\/strong><\/div>\n \u5047\u8bbe\u201chello\u4e16\u754c\u201d\u8fd9\u6837\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u4ed6\u4eec\u7684 Unicode \u7684\u7f16\u7801\u5206\u522b\u662f<\/p>\n 1h--0068 \r\n2e--0065 \r\n3l--006C \r\n4l--006C \r\n5o--006F \r\n6\u4e16--4E16 \r\n7\u754c--754C<\/pre>\n |