常用 HTML 字符集

来源:互联网 发布:怎样复制淘宝图片 编辑:程序博客网 时间:2024/06/10 10:34

常用 HTML 字符集


1.常用 HTML ISO-8859-1 参考手册

参考地址:http://www.w3school.com.cn/tags/html_ref_entities.html

带有实体名称的 ASCII 实体结果描述实体名称实体编号"quotation mark&quot;&#34;'apostrophe &apos;&#39;&ampersand&amp;&#38;<less-than&lt;&#60;>greater-than&gt;&#62;

ISO 8859-1 符号实体结果描述实体名称实体编号 non-breaking space&nbsp;&#160;¥yen&yen;&#165;©copyright&copy;&#169;ªfeminine ordinal indicator&ordf;&#170;«angle quotation mark (left)&laquo;&#171;®registered trademark&reg;&#174;±plus-or-minus &plusmn;&#177;»angle quotation mark (right)&raquo;&#187;×multiplication&times;&#215;÷division&divide;&#247;

注释:实体名称对大小写敏感。


2.常用 HTML ASCII 参考手册

参考地址:http://www.w3school.com.cn/tags/html_ref_ascii.asp


HTML 和 XHTML 用标准的 7 比特 ASCII 代码在网络上传输数据。
7 比特 ASCII 代码可提供 128 个不同的字符值。
7 比特 可显示的 ASCII 代码

结果描述实体编号 space&#32;!exclamation mark&#33;"quotation mark&#34;#number sign&#35;$dollar sign&#36;%percent sign&#37;&ampersand&#38;'apostrophe&#39;(left parenthesis&#40;)right parenthesis&#41;*asterisk&#42;+plus sign&#43;,comma&#44;-hyphen&#45;.period&#46;/slash&#47;0digit 0&#48;1digit 1&#49;2digit 2&#50;3digit 3&#51;4digit 4&#52;5digit 5&#53;6digit 6&#54;7digit 7&#55;8digit 8&#56;9digit 9&#57;:colon&#58;;semicolon&#59;<less-than&#60;=equals-to&#61;>greater-than&#62;?question mark&#63;@at sign&#64;Auppercase A&#65;Buppercase B&#66;Cuppercase C&#67;Duppercase D&#68;Euppercase E&#69;Fuppercase F&#70;Guppercase G&#71;Huppercase H&#72;Iuppercase I&#73;Juppercase J&#74;Kuppercase K&#75;Luppercase L&#76;Muppercase M&#77;Nuppercase N&#78;Ouppercase O&#79;Puppercase P&#80;Quppercase Q&#81;Ruppercase R&#82;Suppercase S&#83;Tuppercase T&#84;Uuppercase U&#85;Vuppercase V&#86;Wuppercase W&#87;Xuppercase X&#88;Yuppercase Y&#89;Zuppercase Z&#90;[left square bracket&#91;\backslash&#92;]right square bracket&#93;^caret&#94;_underscore&#95;`grave accent&#96;alowercase a&#97;blowercase b&#98;clowercase c&#99;dlowercase d&#100;elowercase e&#101;flowercase f&#102;glowercase g&#103;hlowercase h&#104;ilowercase i&#105;jlowercase j&#106;klowercase k&#107;llowercase l&#108;mlowercase m&#109;nlowercase n&#110;olowercase o&#111;plowercase p&#112;qlowercase q&#113;rlowercase r&#114;slowercase s&#115;tlowercase t&#116;ulowercase u&#117;vlowercase v&#118;wlowercase w&#119;xlowercase x&#120;ylowercase y&#121;zlowercase z&#122;{left curly brace&#123;|vertical bar&#124;}right curly brace&#125;~tilde&#126;

3.常用 HTML 字符集


HTML 字符集
如需正确地显示 HTML 页面,浏览器必须知道使用何种字符集。


ISO 字符集

字符集描述使用范围ISO-8859-1Latin alphabet part 1北美、西欧、拉丁美洲、加勒比海、加拿大、非洲ISO-8859-2Latin alphabet part 2东欧ISO-8859-3Latin alphabet part 3SE Europe、世界语、其他杂项ISO-8859-4Latin alphabet part 4斯堪的纳维亚/波罗的海(以及其他没有包括在 ISO-8859-1 中的部分)ISO-8859-5Latin/Cyrillic part 5使用古代斯拉夫语字母表的语言,比如保加利亚语、白俄罗斯文、俄罗斯语、马其顿语ISO-8859-6Latin/Arabic part 6使用阿拉伯字母的语言ISO-8859-7Latin/Greek part 7现代希腊语,以及有希腊语衍生的数学符号ISO-8859-8Latin/Hebrew part 8使用希伯来语的语言ISO-8859-9Latin 5 part 9土耳其语ISO-8859-10Latin 6拉普兰语、日耳曼语、爱斯基摩北欧语ISO-8859-15Latin 9 (aka Latin 0)与 ISO 8859-1 类似,欧元符号和其他一些字符取代了一些较少使用的符号ISO-2022-JPLatin/Japanese part 1日本语ISO-2022-JP-2Latin/Japanese part 2日本语ISO-2022-KRLatin/Korean part 1韩语


Unicode 标准


UTF-8
UTF8 中的字符可以是 1-4 个字节长。UTF-8 可以表示 Unicode 标准中的任意字符。UTF-8 向后兼容 ASCII。UTF-8 是网页和电子邮件的首选编码。


UTF-16
16 比特的 Unicode 转换格式是一种 Unicode 可变字符编码,能够对全部 Unicode 指令表进行编码。
UTF-16 主要被用于操作系统和环境中,比如微软的 Windows 2000/XP/2003/Vista/CE 以及 Java 和 .NET 字节代码环境。



原创粉丝点击