{"id":2150,"date":"2017-08-31T10:54:49","date_gmt":"2017-08-31T02:54:49","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=2150"},"modified":"2017-08-31T10:54:49","modified_gmt":"2017-08-31T02:54:49","slug":"%e5%ad%97%e7%ac%a6%e9%9b%86%e5%9f%ba%e7%a1%80","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=2150","title":{"rendered":"\u5b57\u7b26\u96c6\u57fa\u7840"},"content":{"rendered":"<p>\u5bf9\u4e8e\u8ba1\u7b97\u673a\u800c\u8a00\uff0c\u5b83\u4ec5\u8ba4\u8bc6\u4e24\u4e2a0\u548c1\uff0c\u4e0d\u7ba1\u662f\u5728\u5185\u5b58\u4e2d\u8fd8\u662f\u5916\u90e8\u5b58\u50a8\u8bbe\u5907\u4e0a\uff0c\u6211\u4eec\u6240\u770b\u5230\u7684\u6587\u5b57\u3001\u56fe\u7247\u3001\u89c6\u9891\u7b49\u7b49\u201c\u6570\u636e\u201d\u5728\u8ba1\u7b97\u673a\u4e2d\u90fd\u662f\u5df2\u4e8c\u8fdb\u5236\u5f62\u5f0f\u5b58\u5728\u7684\u3002\u4e0d\u540c\u5b57\u7b26\u5bf9\u5e94\u4e8c\u8fdb\u5236\u6570\u7684\u89c4\u5219\uff0c\u5c31\u662f\u5b57\u7b26\u7684\u7f16\u7801\u3002\u5b57\u7b26\u7f16\u7801\u7684\u96c6\u5408\u79f0\u4e3a\u5b57\u7b26\u96c6\u3002<br \/>\n\u5e38\u89c1\u5b57\u7b26\u7f16\u7801<\/p>\n<p>\u8ba1\u7b97\u673a\u8981\u51c6\u786e\u7684\u5904\u7406\u5404\u79cd\u5b57\u7b26\u96c6\u6587\u5b57\uff0c\u9700\u8981\u8fdb\u884c\u5b57\u7b26\u7f16\u7801\uff0c\u4ee5\u4fbf\u8ba1\u7b97\u673a\u80fd\u591f\u8bc6\u522b\u548c\u5b58\u50a8\u5404\u79cd\u6587\u5b57\u3002\u5e38\u89c1\u7684\u5b57\u7b26\u7f16\u7801\u4e3b\u8981\u5305\u62ec\uff1aASCII\u7f16\u7801\u3001GB**\u7f16\u7801\u3001Unicode\u3002<\/p>\n<h3>1.ASCII\u7f16\u7801<\/h3>\n<p>ASCII\uff0cAmerican Standard Code for Information Interchange\uff0c\u662f\u57fa\u4e8e\u62c9\u4e01\u5b57\u6bcd\u7684\u4e00\u5957\u7535\u8111\u7f16\u7801\u7cfb\u7edf\uff0c\u4e3b\u8981\u7528\u4e8e\u663e\u793a\u73b0\u4ee3\u82f1\u8bed\u548c\u5176\u4ed6\u897f\u6b27\u8bed\u8a00\u3002\u5b83\u662f\u73b0\u4eca\u6700\u901a\u7528\u7684\u5355\u5b57\u8282\u7f16\u7801\u7cfb\u7edf\u3002<br \/>\nASCII\u6536\u5f55\u4e86\u7a7a\u683c\u53ca94\u4e2a\u201c\u53ef\u5370\u5237\u5b57\u7b26\u201d\uff0c\u8db3\u4ee5\u7ed9\u82f1\u8bed\u4f7f\u7528\u3002\u4f46\u662f\uff0c\u5176\u4ed6\u4f7f\u7528\u62c9\u4e01\u5b57\u6bcd\u7684\u8bed\u8a00\uff08\u4e3b\u8981\u662f\u6b27\u6d32\u56fd\u5bb6\u7684\u8bed\u8a00\uff09\uff0c\u90fd\u6709\u4e00\u5b9a\u6570\u91cf\u7684\u9644\u52a0\u7b26\u53f7\u5b57\u6bcd\uff0c\u6545\u53ef\u4ee5\u4f7f\u7528ASCII\u53ca\u63a7\u5236\u5b57\u7b26\u4ee5\u5916\u7684\u533a\u57df\u6765\u50a8\u5b58\u53ca\u8868\u793a\u3002<br \/>\n\u6269\u5145ASCII\u5236\u5b9a\u4e86\u5341\u591a\u4e2a\u9002\u7528\u4e8e\u4e0d\u540c\u56fd\u5bb6\u548c\u5730\u533a\uff08\u5747\u4e3a\u62c9\u4e01\u5b57\u7b26\u96c6\uff08\u9ad8\u4f4d\u4e3a1\u76848\u4f4d\u4ee3\u7801\uff09\uff0c\u79f0\u4e3aISO8859,\u53c8\u79f0\u4e3a \u6269\u5145ASCII\u5b57\u7b26\u96c6<br \/>\nLatin1\u662fISO-8859-1\u7684\u522b\u540d<\/p>\n<h3>2.GBK***\u7f16\u7801<\/h3>\n<p>ASCII\u6700\u5927\u7684\u7f3a\u70b9\u5c31\u662f\u663e\u793a\u5b57\u7b26\u6709\u9650\uff0c\u4ed6\u867d\u7136\u89e3\u51b3\u4e86\u90e8\u5206\u897f\u6b27\u8bed\u8a00\u7684\u663e\u793a\u95ee\u9898\uff0c\u4f46\u662f\u5bf9\u66f4\u591a\u7684\u5176\u4ed6\u8bed\u8a00\u4ed6\u5b9e\u5728\u662f\u65e0\u80fd\u4e3a\u4e86\u3002\u968f\u7740\u8ba1\u7b97\u673a\u6280\u672f\u7684\u53d1\u5c55\uff0c\u4f7f\u7528\u8303\u56f4\u8d8a\u6765\u8d8a\u5e7f\u6cdb\u4e86\uff0cASCII\u7684\u7f3a\u9677\u8d8a\u6765\u8d8a\u660e\u663e\u4e86\uff0c\u5176\u4ed6\u56fd\u5bb6\u548c\u5730\u533a\u9700\u8981\u4f7f\u7528\u8ba1\u7b97\u673a\uff0c\u5fc5\u987b\u8981\u8bbe\u8ba1\u4e00\u5957\u7b26\u5408\u672c\u56fd\/\u672c\u5730\u533a\u7684\u7f16\u7801\u89c4\u5219\u3002\u4f8b\u5982\u4e3a\u4e86\u663e\u793a\u4e2d\u6587\uff0c\u6211\u4eec\u5c31\u5fc5\u987b\u8981\u8bbe\u8ba1\u4e00\u5957\u7f16\u7801\u89c4\u5219\u7528\u4e8e\u5c06\u6c49\u5b57\u8f6c\u6362\u4e3a\u8ba1\u7b97\u673a\u53ef\u4ee5\u63a5\u53d7\u7684\u6570\u5b57\u7cfb\u7edf\u7684\u6570\u3002<\/p>\n<p>GB2312\uff0c\u7528\u4e8e\u6c49\u5b57\u5904\u7406\u3001\u6c49\u5b57\u901a\u4fe1\u7b49\u7cfb\u7edf\u4e4b\u95f4\u7684\u4fe1\u606f\u4ea4\u6362\uff0c\u901a\u884c\u4e8e\u4e2d\u56fd\u5927\u9646\u3002<br \/>\nGBK\uff0c\u6c49\u5b57\u7f16\u7801\u6807\u51c6\u4e4b\u4e00\uff0c\u5168\u79f0\u300a\u6c49\u5b57\u5185\u7801\u6269\u5c55\u89c4\u8303\u300b\uff0c\u5b83 \u5411\u4e0b\u4e0e GB 2312 \u7f16\u7801\u517c\u5bb9\uff0c\u5411\u4e0a\u652f\u6301 ISO 10646.1 \u56fd\u9645\u6807\u51c6\uff0c\u662f\u524d\u8005\u5411\u540e\u8005\u8fc7\u6e21\u8fc7\u7a0b\u4e2d\u7684\u4e00\u4e2a\u627f\u4e0a\u542f\u4e0b\u7684\u6807\u51c6\u3002<\/p>\n<h3>3.Unicode\u7f16\u7801<\/h3>\n<p>\u6b63\u5982\u524d\u9762\u524d\u9762\u6240\u63d0\u5230\u7684\u4e00\u6837\uff0c\u4e16\u754c\u5b58\u5728\u8fd9\u4e48\u591a\u56fd\u5bb6\uff0c\u4e5f\u5b58\u5728\u7740\u591a\u79cd\u7f16\u7801\u98ce\u683c\uff0c\u50cf\u4e2d\u6587\u7684GB232\u3001GBK\u3001GB18030\uff0c\u8fd9\u6837\u4e71\u641e\u4e00\u5957\uff0c\u867d\u7136\u5728\u672c\u5730\u8fd0\u884c\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u662f\u4e00\u65e6\u51fa\u73b0\u5728\u7f51\u7edc\u4e0a\uff0c\u7531\u4e8e\u4e92\u4e0d\u517c\u5bb9\uff0c\u8bbf\u95ee\u5219\u4f1a\u51fa\u73b0\u4e71\u7801\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f1f\u5927\u7684Unicode\u7f16\u7801\u817e\u7a7a\u51fa\u4e16\u3002<br \/>\nUnicode\u7f16\u7801\u53c8\u79f0\u7edf\u4e00\u7801\u3001\u4e07\u56fd\u7801\u3001\u5355\u4e00\u7801\uff0c\u5b83\u662f\u4e1a\u754c\u7684\u4e00\u79cd\u6807\u51c6\uff0c\u662f\u4e3a\u4e86\u89e3\u51b3\u4f20\u7edf\u7684\u5b57\u7b26\u7f16\u7801\u65b9\u6848\u7684\u5c40\u9650\u800c\u4ea7\u751f\u7684\uff0c\u5b83\u4e3a\u6bcf\u79cd\u8bed\u8a00\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u8bbe\u5b9a\u4e86\u7edf\u4e00\u5e76\u4e14\u552f\u4e00\u7684\u4e8c\u8fdb\u5236\u7f16\u7801\uff0c\u4ee5\u6ee1\u8db3\u8de8\u8bed\u8a00\u3001\u8de8\u5e73\u53f0\u8fdb\u884c\u6587\u672c\u8f6c\u6362\u3001\u5904\u7406\u7684\u8981\u6c42\u3002\u540c\u65f6Unicode\u662f\u5b57\u7b26\u96c6\uff0c\u5b83\u5b58\u5728\u5f88\u591a\u51e0\u79cd\u5b9e\u73b0\u65b9\u5f0f\u5982\uff1aUTF-8\u3001UTF-16.<br \/>\nUTF-8<\/p>\n<p>\u4e92\u8054\u7f51\u7684\u666e\u53ca\uff0c\u5f3a\u70c8\u8981\u6c42\u51fa\u73b0\u4e00\u79cd\u7edf\u4e00\u7684\u7f16\u7801\u65b9\u5f0f\u3002UTF-8\u5c31\u662f\u5728\u4e92\u8054\u7f51\u4e0a\u4f7f\u7528\u6700\u5e7f\u7684\u4e00\u79cdunicode\u7684\u5b9e\u73b0\u65b9\u5f0f\u3002\u5176\u4ed6\u5b9e\u73b0\u65b9\u5f0f\u8fd8\u5305\u62ecUTF-16\u548cUTF-32\uff0c\u4e0d\u8fc7\u5728\u4e92\u8054\u7f51\u4e0a\u57fa\u672c\u4e0d\u7528\u3002\u91cd\u590d\u4e00\u904d\uff1aUTF-8\u662fUnicode\u7684\u5b9e\u73b0\u65b9\u5f0f\u4e4b\u4e00\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5bf9\u4e8e\u8ba1\u7b97\u673a\u800c\u8a00\uff0c\u5b83\u4ec5\u8ba4\u8bc6\u4e24\u4e2a0\u548c1\uff0c\u4e0d\u7ba1\u662f\u5728\u5185\u5b58\u4e2d\u8fd8\u662f\u5916\u90e8\u5b58\u50a8\u8bbe\u5907\u4e0a\uff0c\u6211\u4eec\u6240\u770b\u5230\u7684\u6587\u5b57\u3001\u56fe\u7247\u3001\u89c6\u9891\u7b49\u7b49\u201c\u6570\u636e\u201d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[61],"tags":[],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2150"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2150"}],"version-history":[{"count":1,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2150\/revisions"}],"predecessor-version":[{"id":2151,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/2150\/revisions\/2151"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}