{"id":5463,"date":"2016-10-23T14:38:55","date_gmt":"2016-10-23T06:38:55","guid":{"rendered":"https:\/\/sdeno.com\/?p=5463"},"modified":"2016-10-23T14:38:55","modified_gmt":"2016-10-23T06:38:55","slug":"html-%e5%ad%97%e7%ac%a6%e5%ae%9e%e4%bd%93","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=5463","title":{"rendered":"HTML \u5b57\u7b26\u5b9e\u4f53"},"content":{"rendered":"<div style=\"color: #000000;\">\n<h2 style=\"font-weight: bold;\">HTML \u5b57\u7b26\u96c6<\/h2>\n<p>\u5982\u9700\u6b63\u786e\u5730\u663e\u793a HTML \u9875\u9762\uff0c\u6d4f\u89c8\u5668\u5fc5\u987b\u77e5\u9053\u4f7f\u7528\u4f55\u79cd\u5b57\u7b26\u96c6\u3002<\/p>\n<p>\u4e07\u7ef4\u7f51\u65e9\u671f\u4f7f\u7528\u7684\u5b57\u7b26\u96c6\u662f ASCII\u3002ASCII \u652f\u6301 0-9 \u7684\u6570\u5b57\uff0c\u5927\u5199\u548c\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd\u8868\uff0c\u4ee5\u53ca\u4e00\u4e9b\u7279\u6b8a\u5b57\u7b26\u3002<\/p>\n<p><a style=\"color: #900b09;\" title=\"HTML 7 \u6bd4\u7279 ASCII \u4ee3\u7801 \u53c2\u8003\u624b\u518c\" href=\"http:\/\/www.w3school.com.cn\/tags\/html_ref_ascii.asp\">\u5b8c\u6574\u7684 ASCII \u53c2\u8003\u624b\u518c<\/a><\/p>\n<p>\u7531\u4e8e\u5f88\u591a\u56fd\u5bb6\u4f7f\u7528\u7684\u5b57\u7b26\u5e76\u4e0d\u5c5e\u4e8e ASCII\uff0c\u73b0\u4ee3\u6d4f\u89c8\u5668\u7684\u9ed8\u8ba4\u5b57\u7b26\u96c6\u662f ISO-8859-1\u3002<\/p>\n<p><a style=\"color: #900b09;\" title=\"HTML Latin-1 \u5b57\u7b26\u5b9e\u4f53\" href=\"http:\/\/www.w3school.com.cn\/tags\/html_ref_entities.html\">\u5b8c\u6574\u7684 ISO-8859-1 \u53c2\u8003\u624b\u518c<\/a><\/p>\n<p>\u5982\u679c\u7f51\u9875\u4f7f\u7528\u4e0d\u540c\u4e8e ISO-8859-1 \u7684\u5b57\u7b26\u96c6\uff0c\u5c31\u5e94\u8be5\u5728 &lt;meta&gt; \u6807\u7b7e\u8fdb\u884c\u6307\u5b9a\u3002<\/p>\n<\/div>\n<div style=\"color: #000000;\">\n<h2 style=\"font-weight: bold;\">ISO \u5b57\u7b26\u96c6<\/h2>\n<p>ISO \u5b57\u7b26\u96c6\u662f\u56fd\u9645\u6807\u51c6\u7ec4\u7ec7 (ISO) \u9488\u5bf9\u4e0d\u540c\u7684\u5b57\u6bcd\u8868\/\u8bed\u8a00\u5b9a\u4e49\u7684\u6807\u51c6\u5b57\u7b26\u96c6\u3002<\/p>\n<p>\u4e0b\u9762\u5217\u51fa\u4e86\u4e16\u754c\u5404\u5730\u4f7f\u7528\u7684\u4e0d\u540c\u5b57\u7b26\u96c6\uff1a<\/p>\n<table class=\"dataintable\">\n<tbody>\n<tr>\n<th>\u5b57\u7b26\u96c6<\/th>\n<th>\u63cf\u8ff0<\/th>\n<th>\u4f7f\u7528\u8303\u56f4<\/th>\n<\/tr>\n<tr>\n<td>ISO-8859-1<\/td>\n<td>Latin alphabet part 1<\/td>\n<td>\u5317\u7f8e\u3001\u897f\u6b27\u3001\u62c9\u4e01\u7f8e\u6d32\u3001\u52a0\u52d2\u6bd4\u6d77\u3001\u52a0\u62ff\u5927\u3001\u975e\u6d32<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-2<\/td>\n<td>Latin alphabet part 2<\/td>\n<td>\u4e1c\u6b27<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-3<\/td>\n<td>Latin alphabet part 3<\/td>\n<td>SE Europe\u3001\u4e16\u754c\u8bed\u3001\u5176\u4ed6\u6742\u9879<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-4<\/td>\n<td>Latin alphabet part 4<\/td>\n<td>\u65af\u582a\u7684\u7eb3\u7ef4\u4e9a\/\u6ce2\u7f57\u7684\u6d77\uff08\u4ee5\u53ca\u5176\u4ed6\u6ca1\u6709\u5305\u62ec\u5728 ISO-8859-1 \u4e2d\u7684\u90e8\u5206\uff09<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-5<\/td>\n<td>Latin\/Cyrillic part 5<\/td>\n<td>\u4f7f\u7528\u53e4\u4ee3\u65af\u62c9\u592b\u8bed\u5b57\u6bcd\u8868\u7684\u8bed\u8a00\uff0c\u6bd4\u5982\u4fdd\u52a0\u5229\u4e9a\u8bed\u3001\u767d\u4fc4\u7f57\u65af\u6587\u3001\u4fc4\u7f57\u65af\u8bed\u3001\u9a6c\u5176\u987f\u8bed<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-6<\/td>\n<td>Latin\/Arabic part 6<\/td>\n<td>\u4f7f\u7528\u963f\u62c9\u4f2f\u5b57\u6bcd\u7684\u8bed\u8a00<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-7<\/td>\n<td>Latin\/Greek part 7<\/td>\n<td>\u73b0\u4ee3\u5e0c\u814a\u8bed\uff0c\u4ee5\u53ca\u6709\u5e0c\u814a\u8bed\u884d\u751f\u7684\u6570\u5b66\u7b26\u53f7<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-8<\/td>\n<td>Latin\/Hebrew part 8<\/td>\n<td>\u4f7f\u7528\u5e0c\u4f2f\u6765\u8bed\u7684\u8bed\u8a00<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-9<\/td>\n<td>Latin 5 part 9<\/td>\n<td>\u571f\u8033\u5176\u8bed<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-10<\/td>\n<td>Latin 6<\/td>\n<td>\u62c9\u666e\u5170\u8bed\u3001\u65e5\u8033\u66fc\u8bed\u3001\u7231\u65af\u57fa\u6469\u5317\u6b27\u8bed<\/td>\n<\/tr>\n<tr>\n<td>ISO-8859-15<\/td>\n<td>Latin 9 (aka Latin 0)<\/td>\n<td>\u4e0e ISO 8859-1 \u7c7b\u4f3c\uff0c\u6b27\u5143\u7b26\u53f7\u548c\u5176\u4ed6\u4e00\u4e9b\u5b57\u7b26\u53d6\u4ee3\u4e86\u4e00\u4e9b\u8f83\u5c11\u4f7f\u7528\u7684\u7b26\u53f7<\/td>\n<\/tr>\n<tr>\n<td>ISO-2022-JP<\/td>\n<td>Latin\/Japanese part 1<\/td>\n<td>\u65e5\u672c\u8bed<\/td>\n<\/tr>\n<tr>\n<td>ISO-2022-JP-2<\/td>\n<td>Latin\/Japanese part 2<\/td>\n<td>\u65e5\u672c\u8bed<\/td>\n<\/tr>\n<tr>\n<td>ISO-2022-KR<\/td>\n<td>Latin\/Korean part 1<\/td>\n<td>\u97e9\u8bed<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div style=\"color: #000000;\">\n<h2 style=\"font-weight: bold;\">Unicode \u6807\u51c6<\/h2>\n<p>\u7531\u4e8e\u4e0a\u9762\u5217\u51fa\u7684\u5b57\u7b26\u96c6\u90fd\u6709\u5bb9\u91cf\u9650\u5236\uff0c\u800c\u4e14\u4e0d\u517c\u5bb9\u591a\u8bed\u8a00\u73af\u5883\uff0cUnicode \u8054\u76df\u5f00\u53d1\u4e86 Unicode \u6807\u51c6\u3002<\/p>\n<p>Unicode \u6807\u51c6\u6db5\u76d6\u4e86\u4e16\u754c\u4e0a\u7684\u6240\u6709\u5b57\u7b26\u3001\u6807\u70b9\u548c\u7b26\u53f7\u3002<\/p>\n<p>\u4e0d\u8bba\u662f\u4f55\u79cd\u5e73\u53f0\u3001\u7a0b\u5e8f\u6216\u8bed\u8a00\uff0cUnicode \u90fd\u80fd\u591f\u8fdb\u884c\u6587\u672c\u6570\u636e\u7684\u5904\u7406\u3001\u5b58\u50a8\u548c\u4ea4\u6362\u3002<\/p>\n<\/div>\n<div style=\"color: #000000;\">\n<h2 style=\"font-weight: bold;\">Unicode \u8054\u76df<\/h2>\n<p>Unicode \u8054\u76df\u5f00\u53d1\u4e86 Unicode \u6807\u51c6\u3002\u4ed6\u4eec\u7684\u76ee\u6807\u662f\u7528\u6807\u51c6\u7684 Unicode \u8f6c\u6362\u683c\u5f0f (UTF) \u6765\u53d6\u4ee3\u73b0\u6709\u7684\u5b57\u7b26\u96c6\u3002<\/p>\n<p>Unicode \u6807\u51c6\u5df2\u7ecf\u83b7\u5f97\u4e86\u6210\u529f\uff0c\u5728 XML\u3001Java\u3001ECMAScript (JavaScript)\u3001LDAP\u3001CORBA 3.0\u3001WML \u4e2d\uff0cUnicode \u5df2\u7ecf\u5f97\u5230\u4e86\u5b9e\u73b0\u3002\u5728\u8bb8\u591a\u64cd\u4f5c\u7cfb\u7edf\u4ee5\u53ca\u6240\u6709\u7684\u73b0\u4ee3\u6d4f\u89c8\u5668\u4e2d\uff0cUnicode \u540c\u6837\u5f97\u5230\u4e86\u652f\u6301\u3002<\/p>\n<p>Unicode \u8054\u76df\u4e0e\u9886\u5bfc\u6027\u7684\u6807\u51c6\u53d1\u5c55\u7ec4\u7ec7\u8fdb\u884c\u5408\u4f5c\uff0c\u6bd4\u5982 ISO\u3001W3C \u4ee5\u53ca ECMA\u3002<\/p>\n<p>Unicode \u53ef\u4ee5\u88ab\u4e0d\u540c\u7684\u5b57\u7b26\u96c6\u517c\u5bb9\u3002\u6700\u5e38\u7528\u7684\u7f16\u7801\u65b9\u5f0f\u662f UTF-8 \u548c UTF-16\uff1a<\/p>\n<dl class=\"define\">\n<dt style=\"font-weight: bold; color: #0479a7;\">UTF-8<\/dt>\n<dd>UTF8 \u4e2d\u7684\u5b57\u7b26\u53ef\u4ee5\u662f 1-4 \u4e2a\u5b57\u8282\u957f\u3002UTF-8 \u53ef\u4ee5\u8868\u793a Unicode \u6807\u51c6\u4e2d\u7684\u4efb\u610f\u5b57\u7b26\u3002UTF-8 \u5411\u540e\u517c\u5bb9 ASCII\u3002UTF-8 \u662f\u7f51\u9875\u548c\u7535\u5b50\u90ae\u4ef6\u7684\u9996\u9009\u7f16\u7801\u3002<\/dd>\n<dt style=\"font-weight: bold; color: #0479a7;\">UTF-16<\/dt>\n<dd>16 \u6bd4\u7279\u7684 Unicode \u8f6c\u6362\u683c\u5f0f\u662f\u4e00\u79cd Unicode \u53ef\u53d8\u5b57\u7b26\u7f16\u7801\uff0c\u80fd\u591f\u5bf9\u5168\u90e8 Unicode \u6307\u4ee4\u8868\u8fdb\u884c\u7f16\u7801\u3002UTF-16 \u4e3b\u8981\u88ab\u7528\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u548c\u73af\u5883\u4e2d\uff0c\u6bd4\u5982\u5fae\u8f6f\u7684 Windows 2000\/XP\/2003\/Vista\/CE \u4ee5\u53ca Java \u548c .NET \u5b57\u8282\u4ee3\u7801\u73af\u5883\u3002<\/dd>\n<\/dl>\n<p class=\"tip\"><span style=\"font-weight: bold; color: #ff9955;\">\u63d0\u793a\uff1a<\/span>\u6700\u524d\u9762\u7684 256 \u4e2a Unicode \u5b57\u7b26\u96c6\u5b57\u7b26\u5bf9\u5e94\u4e8e 256 \u4e2a ISO-8859-1 \u5b57\u7b26\u3002<\/p>\n<p class=\"tip\"><span style=\"font-weight: bold; color: #ff9955;\">\u63d0\u793a\uff1a<\/span>\u6240\u6709 HTML 4 \u5904\u7406\u5668\u5747\u5df2\u652f\u6301 UTF-8\uff0c\u800c\u6240\u6709 XHTML \u548c XML \u5904\u7406\u5668\u652f\u6301 UTF-8 \u548c UTF-16\u3002<\/p>\n<p class=\"tip\"><a href=\"http:\/\/www.w3school.com.cn\/html\/html_entities.asp\" target=\"_blank\">http:\/\/www.w3school.com.cn\/html\/html_entities.asp<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>HTML \u5b57\u7b26\u96c6 \u5982\u9700\u6b63\u786e\u5730\u663e\u793a HTML \u9875\u9762\uff0c\u6d4f\u89c8\u5668\u5fc5\u987b\u77e5\u9053\u4f7f\u7528\u4f55\u79cd\u5b57\u7b26\u96c6\u3002 \u4e07\u7ef4\u7f51\u65e9\u671f\u4f7f\u7528\u7684\u5b57\u7b26\u96c6\u662f A [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5463","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5463"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/5463\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}