加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
常用HTML转义字符,html转义符,JavaScript转义符,html转义字符表,HTML语言特殊字符对照表(ISO Latin-1字符集) - 来源:嘻嘻网 114.xixik.com.html 28.48 KB
一键复制 编辑 原始数据 按行查看 历史
LunarSF 提交于 2020-12-20 17:47 . 继续 reveal.js 调用功能。
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0031)http://114.xixik.com/character/ -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>常用HTML转义字符,html转义符,JavaScript转义符,html转义字符表,HTML语言特殊字符对照表(ISO Latin-1字符集) - 来源:嘻嘻网 114.xixik.com</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Language" content="zh-CN">
<meta name="description" content="html转义符,html空格转义,转义字符,转义符,html转义字符表,JavaScript转义符,xml转义,Escape Sequence,Character Entity">
<!--<base target="_blank">--><base href="." target="_blank">
<style type="text/css" media="screen">
/* Copyright (c) 2006-2008 114.xixik.com All rights reserved. */
body{
margin:0;
padding:0;
background:#FFF;
color:#000;
font-family:"宋体", arial;
font-size:12px;
text-align:center;
}
div{
margin-right:auto;
margin-left:auto;
padding-bottom:8px;
width:778px;
text-align:center;
}
form,img,ul,li{
margin:0;
padding:0;
border:0;
}
img{
vertical-align:middle;
}
p{
text-align:left;
font-size:14px;
line-height:150%;
text-indent:2em;
}
table,td{
border:2px #FFF solid;
border-collapse:collapse;
background-color:#ECECEC;
line-height:180%;
font-size:14px;
text-align:left;
}
th{
border:2px #fff solid;
font-weight:bold;
text-align:center;
}
pre{
font-size:14px;
text-align:left;
}
.key{
width:40px;
font-size:18px;
text-align:center;
}
a{
color:#0065cf;
font-size:12px;
}
a:hover{
color:#F40;
text-decoration:none;
}
.c000{
color:#000;
}
.cf40{
color:#F40;
}
.cf60{
color:#F60;
}
.f12px{
font-size:12px;
}
.f14px{
font-size:14px;
}
.f16px{
font-size:16px;
}
.fb{
font-weight:bold;
}
.fn{
font-weight:normal;
}
h1,h2{
margin:0;
padding:0;
font-family:Microsoft YaHei,黑体;
font-weight:normal;
}
h1{
font-size:18px;
}
h2{
font-size:16px;
}
input{
cursor:pointer;
}
.dotted{
border-bottom:1px dotted #ccc;
}
.commonContainer{
height:1%;
text-align:center;
}
.footer{
color:#999;
font-family:arial;
}
</style>
<style type="text/css" media="print">
.noprint{display:none}
</style>
</head>
<body>
<!-- Contents of this file are Copyright 2006-2008, Xixik Inc. -->
<div class="noprint">
<div class="commonContainer">
<h1>HTML字符实体(Character Entities),转义字符串(Escape Sequence)</h1>
</div>
</div>
<!-- Contents of this file are Copyright 2006-2008, Xixik Inc. -->
<div class="commonContainer">
<h2>为什么要用转义字符串?</h2>
<p>HTML中&lt;&gt;&amp;等有特殊含义(&lt;&gt;,用于链接签,&amp;用于转义),不能直接使用。这些符号是不显示在我们最终看到的网页里的,那如果我们希望在网页中显示这些符号,该怎么办呢?
</p>
<p>这就要说到HTML转义字符串(Escape Sequence)了。
</p>
<p><a href="http://114.xixik.com/character/" class="f14px" title="常用HTML转义字符,html转义符">转义字符串</a>(Escape Sequence)也称字符实体(Character Entity)。在HTML中,定义转义字符串的原因有两个:第一个原因是像“&lt;”和“&gt;”这类符号已经用来表示HTML标签,因此就不能直接当作文本中的符号来使用。为了在HTML文档中使用这些符号,就需要定义它的转义字符串。当解释程序遇到这类字符串时就把它解释为真实的字符。在输入转义字符串时,要严格遵守字母大小写的规则。第二个原因是,有些字符在ASCII字符集中没有定义,因此需要使用转义字符串来表示。
</p>
<!-- Contents of this file are Copyright 2006-2008, Xixik Inc. -->
<h2>转义字符串的组成</h2>
<p>转义字符串(Escape Sequence),即字符实体(Character Entity)分成三部分:第一部分是一个&amp;符号,英文叫ampersand;第二部分是实体(Entity)名字或者是#加上实体(Entity)编号;第三部分是一个分号。
</p>
<p>比如,要显示小于号(&lt;),就可以写 &amp;lt; 或者 &amp;#60; 。
</p>
<p>用实体(Entity)名字的好处是比较好理解,一看lt,大概就猜出是less than的意思,但是其劣势在于并不是所有的浏览器都支持最新的Entity名字。而实体(Entity)编号,各种浏览器都能处理。
</p>
<p>提示:实体名称(Entity)是区分大小写的。
</p>
<p>备注:同一个符号,可以用“实体名称”和“实体编号”两种方式引用,“实体名称”的优势在于便于记忆,但不能保证所有的浏览器都能顺利识别它,而“实体编号”则没有这种担忧,但它实在不方便记忆。
</p>
<h2>如何显示空格?</h2>
<p>通常情况下,HTML会自动截去多余的空格。不管你加多少空格,都被看做一个空格。比如你在两个字之间加了10个空格,HTML会截去9个空格,只保留一个。为了在网页中增加空格,你可以使用&amp;nbsp;表示空格。
</p>
</div>
<div class="commonContainer">
<hr>
<h1>HTML特殊转义字符列表</h1>
<h2>最常用的字符实体<br>Character Entities</h2>
<table width="400">
<tbody>
<tr>
<th>显示</th>
<th>说明</th>
<th>实体名称</th>
<th>实体编号</th>
</tr>
<tr>
<td class="key"></td>
<td>半方大的空白</td>
<td>&amp;ensp;</td>
<td>&amp;#8194;</td></tr>
<tr>
</tr><tr>
<td class="key"></td>
<td>全方大的空白</td>
<td>&amp;emsp;</td>
<td>&amp;#8195;</td></tr>
<tr>
</tr><tr>
<td class="key"></td>
<td>不断行的空白格</td>
<td>&amp;nbsp;</td>
<td>&amp;#160;</td></tr>
<tr>
<td class="key">&lt;</td>
<td>小于</td>
<td>&amp;lt;</td>
<td>&amp;#60;</td></tr>
<tr>
<td class="key">&gt;</td>
<td>大于</td>
<td>&amp;gt;</td>
<td>&amp;#62;</td></tr>
<tr>
<td class="key">&amp;</td>
<td>&amp;符号</td>
<td>&amp;amp;</td>
<td>&amp;#38;</td></tr>
<tr>
<td class="key">"</td>
<td>双引号</td>
<td>&amp;quot;</td>
<td>&amp;#34;</td>
</tr>
<tr>
<td class="key">&#169;</td>
<td>版权</td>
<td>&amp;copy;</td>
<td>&amp;#169;</td></tr>
<tr>
<td class="key">&#174;</td>
<td>已注册商标</td>
<td>&amp;reg;</td>
<td>&amp;#174;</td></tr>
<tr>
<td class="key">&#8482;</td>
<td>商标(美国)</td>
<td>&#8482;</td>
<td>&amp;#8482;</td></tr>
<tr>
</tr><tr>
<td class="key">×</td>
<td>乘号</td>
<td>&amp;times;</td>
<td>&amp;#215;</td></tr>
<tr>
<td class="key">÷</td>
<td>除号</td>
<td>&amp;divide;</td>
<td>&amp;#247;</td></tr>
</tbody>
</table>
</div>
<div class="commonContainer">
<h2>ISO 8859-1 (Latin-1)字符集</h2>
<p>
HTML 4.01 支持 ISO 8859-1 (Latin-1) 字符集。
</p>
<p>
备注:为了方便起见,以下表格中,“实体名称”简称为“名称”,“实体编号”简称为“编号”
</p>
<table width="778">
<tbody>
<tr>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
</tr>
<tr><td class="key">&nbsp;</td>
<td>&amp;nbsp;</td>
<td>&amp;#160;</td>
<td class="key">&#161;</td>
<td>&amp;iexcl;</td>
<td>&amp;#161;</td>
<td class="key"></td>
<td>&amp;cent;</td>
<td>&amp;#162;</td>
<td class="key"></td>
<td>&amp;pound;</td>
<td>&amp;#163;</td>
<td class="key">¤</td>
<td>&amp;curren;</td>
<td>&amp;#164;</td></tr>
<tr>
<td class="key"></td>
<td>&amp;yen;</td>
<td>&amp;#165;</td>
<td class="key">|</td>
<td>&amp;brvbar;</td>
<td>&amp;#166;</td>
<td class="key">§</td>
<td>&amp;sect;</td>
<td>&amp;#167;</td>
<td class="key">¨</td>
<td>&amp;uml;</td>
<td>&amp;#168;</td>
<td class="key">&#169;</td>
<td>&amp;copy;</td>
<td>&amp;#169;</td></tr>
<tr>
<td class="key">a</td>
<td>&amp;ordf;</td>
<td>&amp;#170;</td>
<td class="key">&#171;</td>
<td>&amp;laquo;</td>
<td>&amp;#171;</td>
<td class="key">&#172;</td>
<td>&amp;not;</td>
<td>&amp;#172;</td>
<td class="key">-</td>
<td>&amp;shy;</td>
<td>&amp;#173;</td>
<td class="key">&#174;</td>
<td>&amp;reg;</td>
<td>&amp;#174;</td></tr>
<tr>
<td class="key">ˉ</td>
<td>&amp;macr;</td>
<td>&amp;#175;</td>
<td class="key">°</td>
<td>&amp;deg;</td>
<td>&amp;#176;</td>
<td class="key">±</td>
<td>&amp;plusmn;</td>
<td>&amp;#177;</td>
<td class="key">2</td>
<td>&amp;sup2;</td>
<td>&amp;#178;</td>
<td class="key">3</td>
<td>&amp;sup3;</td>
<td>&amp;#179;</td></tr>
<tr>
<td class="key"></td>
<td>&amp;acute;</td>
<td>&amp;#180;</td>
<td class="key">μ</td>
<td>&amp;micro;</td>
<td>&amp;#181;</td>
<td class="key">&#182;</td>
<td>&amp;para;</td>
<td>&amp;#182;</td>
<td class="key">·</td>
<td>&amp;middot;</td>
<td>&amp;#183;</td>
<td class="key">&#184;</td>
<td>&amp;cedil;</td>
<td>&amp;#184;</td></tr>
<tr>
<td class="key">1</td>
<td>&amp;sup1;</td>
<td>&amp;#185;</td>
<td class="key">o</td>
<td>&amp;ordm;</td>
<td>&amp;#186;</td>
<td class="key">&#187;</td>
<td>&amp;raquo;</td>
<td>&amp;#187;</td>
<td class="key">&#188;</td>
<td>&amp;frac14;</td>
<td>&amp;#188;</td>
<td class="key">&#189;</td>
<td>&amp;frac12;</td>
<td>&amp;#189;</td></tr>
<tr>
<td class="key">&#190;</td>
<td>&amp;frac34;</td>
<td>&amp;#190;</td>
<td class="key">&#191;</td>
<td>&amp;iquest;</td>
<td>&amp;#191;</td>
<td class="key">à</td>
<td>&amp;Agrave;</td>
<td>&amp;#192;</td>
<td class="key">á</td>
<td>&amp;Aacute;</td>
<td>&amp;#193;</td>
<td class="key">&#194;</td>
<td>&amp;Acirc;</td>
<td>&amp;#194;</td></tr>
<tr>
<td class="key">&#195;</td>
<td>&amp;Atilde;</td>
<td>&amp;#195;</td>
<td class="key">&#196;</td>
<td>&amp;Auml;</td>
<td>&amp;#196;</td>
<td class="key">&#197;</td>
<td>&amp;Aring;</td>
<td>&amp;#197;</td>
<td class="key">&#198;</td>
<td>&amp;AElig;</td>
<td>&amp;#198;</td>
<td class="key">&#199;</td>
<td>&amp;Ccedil;</td>
<td>&amp;#199;</td></tr>
<tr>
<td class="key">è</td>
<td>&amp;Egrave;</td>
<td>&amp;#200;</td>
<td class="key">é</td>
<td>&amp;Eacute;</td>
<td>&amp;#201;</td>
<td class="key">ê</td>
<td>&amp;Ecirc;</td>
<td>&amp;#202;</td>
<td class="key">&#203;</td>
<td>&amp;Euml;</td>
<td>&amp;#203;</td>
<td class="key">ì</td>
<td>&amp;Igrave;</td>
<td>&amp;#204;</td></tr>
<tr>
<td class="key">í</td>
<td>&amp;Iacute;</td>
<td>&amp;#205;</td>
<td class="key">&#206;</td>
<td>&amp;Icirc;</td>
<td>&amp;#206;</td>
<td class="key">&#207;</td>
<td>&amp;Iuml;</td>
<td>&amp;#207;</td>
<td class="key">D</td>
<td>&amp;ETH;</td>
<td>&amp;#208;</td>
<td class="key">&#209;</td>
<td>&amp;Ntilde;</td>
<td>&amp;#209;</td></tr>
<tr>
<td class="key">ò</td>
<td>&amp;Ograve;</td>
<td>&amp;#210;</td>
<td class="key">ó</td>
<td>&amp;Oacute;</td>
<td>&amp;#211;</td>
<td class="key">&#212;</td>
<td>&amp;Ocirc;</td>
<td>&amp;#212;</td>
<td class="key">&#213;</td>
<td>&amp;Otilde;</td>
<td>&amp;#213;</td>
<td class="key">&#214;</td>
<td>&amp;Ouml;</td>
<td>&amp;#214;</td></tr>
<tr>
<td class="key">×</td>
<td>&amp;times;</td>
<td>&amp;#215;</td>
<td class="key">&#216;</td>
<td>&amp;Oslash;</td>
<td>&amp;#216;</td>
<td class="key">ù</td>
<td>&amp;Ugrave;</td>
<td>&amp;#217;</td>
<td class="key">ú</td>
<td>&amp;Uacute;</td>
<td>&amp;#218;</td>
<td class="key">&#219;</td>
<td>&amp;Ucirc;</td>
<td>&amp;#219;</td></tr>
<tr>
<td class="key">ü</td>
<td>&amp;Uuml;</td>
<td>&amp;#220;</td>
<td class="key">Y</td>
<td>&amp;Yacute;</td>
<td>&amp;#221;</td>
<td class="key">T</td>
<td>&amp;THORN;</td>
<td>&amp;#222;</td>
<td class="key">&#223;</td>
<td>&amp;szlig;</td>
<td>&amp;#223;</td>
<td class="key">à</td>
<td>&amp;agrave;</td>
<td>&amp;#224;</td></tr>
<tr>
<td class="key">á</td>
<td>&amp;aacute;</td>
<td>&amp;#225;</td>
<td class="key">a</td>
<td>&amp;acirc;</td>
<td>&amp;#226;</td>
<td class="key">&#227;</td>
<td>&amp;atilde;</td>
<td>&amp;#227;</td>
<td class="key">&#228;</td>
<td>&amp;auml;</td>
<td>&amp;#228;</td>
<td class="key">&#229;</td>
<td>&amp;aring;</td>
<td>&amp;#229;</td></tr>
<tr>
<td class="key">&#230;</td>
<td>&amp;aelig;</td>
<td>&amp;#230;</td>
<td class="key">&#231;</td>
<td>&amp;ccedil;</td>
<td>&amp;#231;</td>
<td class="key">è</td>
<td>&amp;egrave;</td>
<td>&amp;#232;</td>
<td class="key">é</td>
<td>&amp;eacute;</td>
<td>&amp;#233;</td>
<td class="key">ê</td>
<td>&amp;ecirc;</td>
<td>&amp;#234;</td></tr>
<tr>
<td class="key">&#235;</td>
<td>&amp;euml;</td>
<td>&amp;#235;</td>
<td class="key">ì</td>
<td>&amp;igrave;</td>
<td>&amp;#236;</td>
<td class="key">í</td>
<td>&amp;iacute;</td>
<td>&amp;#237;</td>
<td class="key">&#238;</td>
<td>&amp;icirc;</td>
<td>&amp;#238;</td>
<td class="key">&#239;</td>
<td>&amp;iuml;</td>
<td>&amp;#239;</td></tr>
<tr>
<td class="key">e</td>
<td>&amp;eth;</td>
<td>&amp;#240;</td>
<td class="key">&#241;</td>
<td>&amp;ntilde;</td>
<td>&amp;#241;</td>
<td class="key">ò</td>
<td>&amp;ograve;</td>
<td>&amp;#242;</td>
<td class="key">ó</td>
<td>&amp;oacute;</td>
<td>&amp;#243;</td>
<td class="key">&#244;</td>
<td>&amp;ocirc;</td>
<td>&amp;#244;</td></tr>
<tr>
<td class="key">&#245;</td>
<td>&amp;otilde;</td>
<td>&amp;#245;</td>
<td class="key">&#246;</td>
<td>&amp;ouml;</td>
<td>&amp;#246;</td>
<td class="key">÷</td>
<td>&amp;divide;</td>
<td>&amp;#247;</td>
<td class="key">&#248;</td>
<td>&amp;oslash;</td>
<td>&amp;#248;</td>
<td class="key">ù</td>
<td>&amp;ugrave;</td>
<td>&amp;#249;</td></tr>
<tr>
<td class="key">ú</td>
<td>&amp;uacute;</td>
<td>&amp;#250;</td>
<td class="key">&#251;</td>
<td>&amp;ucirc;</td>
<td>&amp;#251;</td>
<td class="key">ü</td>
<td>&amp;uuml;</td>
<td>&amp;#252;</td>
<td class="key">y</td>
<td>&amp;yacute;</td>
<td>&amp;#253;</td>
<td class="key">t</td>
<td>&amp;thorn;</td>
<td>&amp;#254;</td></tr>
<tr>
<td class="key">&#255;</td>
<td>&amp;yuml;</td>
<td>&amp;#255;</td></tr></tbody></table>
<h2>数学和希腊字母标志<br>symbols, mathematical symbols, and Greek letters</h2>
<table width="778">
<tbody>
<tr>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
</tr>
<tr>
<td class="key">&#402;</td>
<td>&amp;fnof;</td>
<td>&amp;#402;</td>
<td class="key">Α</td>
<td>&amp;Alpha;</td>
<td>&amp;#913;</td>
<td class="key">Β</td>
<td>&amp;Beta;</td>
<td>&amp;#914;</td>
<td class="key">Γ</td>
<td>&amp;Gamma;</td>
<td>&amp;#915;</td>
<td class="key">Δ</td>
<td>&amp;Delta;</td>
<td>&amp;#916;</td></tr>
<tr>
<td class="key">Ε</td>
<td>&amp;Epsilon;</td>
<td>&amp;#917;</td>
<td class="key">Ζ</td>
<td>&amp;Zeta;</td>
<td>&amp;#918;</td>
<td class="key">Η</td>
<td>&amp;Eta;</td>
<td>&amp;#919;</td>
<td class="key">Θ</td>
<td>&amp;Theta;</td>
<td>&amp;#920;</td>
<td class="key">Ι</td>
<td>&amp;Iota;</td>
<td>&amp;#921;</td></tr>
<tr>
<td class="key">Κ</td>
<td>&amp;Kappa;</td>
<td>&amp;#922;</td>
<td class="key">Λ</td>
<td>&amp;Lambda;</td>
<td>&amp;#923;</td>
<td class="key">Μ</td>
<td>&amp;Mu;</td>
<td>&amp;#924;</td>
<td class="key">Ν</td>
<td>&amp;Nu;</td>
<td>&amp;#925;</td>
<td class="key">Ξ</td>
<td>&amp;Xi;</td>
<td>&amp;#926;</td></tr>
<tr>
<td class="key">Ο</td>
<td>&amp;Omicron;</td>
<td>&amp;#927;</td>
<td class="key">Π</td>
<td>&amp;Pi;</td>
<td>&amp;#928;</td>
<td class="key">Ρ</td>
<td>&amp;Rho;</td>
<td>&amp;#929;</td>
<td class="key">Σ</td>
<td>&amp;Sigma;</td>
<td>&amp;#931;</td>
<td class="key">Τ</td>
<td>&amp;Tau;</td>
<td>&amp;#932;</td></tr>
<tr>
<td class="key">Υ</td>
<td>&amp;Upsilon;</td>
<td>&amp;#933;</td>
<td class="key">Φ</td>
<td>&amp;Phi;</td>
<td>&amp;#934;</td>
<td class="key">Χ</td>
<td>&amp;Chi;</td>
<td>&amp;#935;</td>
<td class="key">Ψ</td>
<td>&amp;Psi;</td>
<td>&amp;#936;</td>
<td class="key">Ω</td>
<td>&amp;Omega;</td>
<td>&amp;#937;</td></tr>
<tr>
<td class="key">α</td>
<td>&amp;alpha;</td>
<td>&amp;#945;</td>
<td class="key">β</td>
<td>&amp;beta;</td>
<td>&amp;#946;</td>
<td class="key">γ</td>
<td>&amp;gamma;</td>
<td>&amp;#947;</td>
<td class="key">δ</td>
<td>&amp;delta;</td>
<td>&amp;#948;</td>
<td class="key">ε</td>
<td>&amp;epsilon;</td>
<td>&amp;#949;</td></tr>
<tr>
<td class="key">ζ</td>
<td>&amp;zeta;</td>
<td>&amp;#950;</td>
<td class="key">η</td>
<td>&amp;eta;</td>
<td>&amp;#951;</td>
<td class="key">θ</td>
<td>&amp;theta;</td>
<td>&amp;#952;</td>
<td class="key">ι</td>
<td>&amp;iota;</td>
<td>&amp;#953;</td>
<td class="key">κ</td>
<td>&amp;kappa;</td>
<td>&amp;#954;</td></tr>
<tr>
<td class="key">λ</td>
<td>&amp;lambda;</td>
<td>&amp;#955;</td>
<td class="key">μ</td>
<td>&amp;mu;</td>
<td>&amp;#956;</td>
<td class="key">ν</td>
<td>&amp;nu;</td>
<td>&amp;#957;</td>
<td class="key">ξ</td>
<td>&amp;xi;</td>
<td>&amp;#958;</td>
<td class="key">ο</td>
<td>&amp;omicron;</td>
<td>&amp;#959;</td></tr>
<tr>
<td class="key">π</td>
<td>&amp;pi;</td>
<td>&amp;#960;</td>
<td class="key">ρ</td>
<td>&amp;rho;</td>
<td>&amp;#961;</td>
<td class="key">&#962;</td>
<td>&amp;sigmaf;</td>
<td>&amp;#962;</td>
<td class="key">σ</td>
<td>&amp;sigma;</td>
<td>&amp;#963;</td>
<td class="key">τ</td>
<td>&amp;tau;</td>
<td>&amp;#964;</td></tr>
<tr>
<td class="key">υ</td>
<td>&amp;upsilon;</td>
<td>&amp;#965;</td>
<td class="key">φ</td>
<td>&amp;phi;</td>
<td>&amp;#966;</td>
<td class="key">χ</td>
<td>&amp;chi;</td>
<td>&amp;#967;</td>
<td class="key">ψ</td>
<td>&amp;psi;</td>
<td>&amp;#968;</td>
<td class="key">ω</td>
<td>&amp;omega;</td>
<td>&amp;#969;</td></tr>
<tr>
<td class="key">?</td>
<td>&amp;thetasym;</td>
<td>&amp;#977;</td>
<td class="key">?</td>
<td>&amp;upsih;</td>
<td>&amp;#978;</td>
<td class="key">?</td>
<td>&amp;piv;</td>
<td>&amp;#982;</td>
<td class="key">&#8226;</td>
<td>&amp;bull;</td>
<td>&amp;#8226;</td>
<td class="key"></td>
<td>&amp;hellip;</td>
<td>&amp;#8230;</td></tr>
<tr>
<td class="key"></td>
<td>&amp;prime;</td>
<td>&amp;#8242;</td>
<td class="key"></td>
<td>&amp;Prime;</td>
<td>&amp;#8243;</td>
<td class="key"></td>
<td>&amp;oline;</td>
<td>&amp;#8254;</td>
<td class="key">&#8260;</td>
<td>&amp;frasl;</td>
<td>&amp;#8260;</td>
<td class="key">&#8472;</td>
<td>&amp;weierp;</td>
<td>&amp;#8472;</td></tr>
<tr>
<td class="key">&#8465;</td>
<td>&amp;image;</td>
<td>&amp;#8465;</td>
<td class="key">&#8476;</td>
<td>&amp;real;</td>
<td>&amp;#8476;</td>
<td class="key">&#8482;</td>
<td>&amp;trade;</td>
<td>&amp;#8482;</td>
<td class="key">&#8501;</td>
<td>&amp;alefsym;</td>
<td>&amp;#8501;</td>
<td class="key"></td>
<td>&amp;larr;</td>
<td>&amp;#8592;</td></tr>
<tr>
<td class="key"></td>
<td>&amp;uarr;</td>
<td>&amp;#8593;</td>
<td class="key"></td>
<td>&amp;rarr;</td>
<td>&amp;#8594;</td>
<td class="key"></td>
<td>&amp;darr;</td>
<td>&amp;#8595;</td>
<td class="key">&#8596;</td>
<td>&amp;harr;</td>
<td>&amp;#8596;</td>
<td class="key">&#8629;</td>
<td>&amp;crarr;</td>
<td>&amp;#8629;</td></tr>
<tr>
<td class="key">&#8656;</td>
<td>&amp;lArr;</td>
<td>&amp;#8656;</td>
<td class="key">&#8657;</td>
<td>&amp;uArr;</td>
<td>&amp;#8657;</td>
<td class="key">&#8658;</td>
<td>&amp;rArr;</td>
<td>&amp;#8658;</td>
<td class="key">&#8659;</td>
<td>&amp;dArr;</td>
<td>&amp;#8659;</td>
<td class="key">&#8660;</td>
<td>&amp;hArr;</td>
<td>&amp;#8660;</td></tr>
<tr>
<td class="key">&#8704;</td>
<td>&amp;forall;</td>
<td>&amp;#8704;</td>
<td class="key">&#8706;</td>
<td>&amp;part;</td>
<td>&amp;#8706;</td>
<td class="key">&#8707;</td>
<td>&amp;exist;</td>
<td>&amp;#8707;</td>
<td class="key">&#8709;</td>
<td>&amp;empty;</td>
<td>&amp;#8709;</td>
<td class="key">&#8711;</td>
<td>&amp;nabla;</td>
<td>&amp;#8711;</td></tr>
<tr>
<td class="key"></td>
<td>&amp;isin;</td>
<td>&amp;#8712;</td>
<td class="key">&#8713;</td>
<td>&amp;notin;</td>
<td>&amp;#8713;</td>
<td class="key">&#8715;</td>
<td>&amp;ni;</td>
<td>&amp;#8715;</td>
<td class="key"></td>
<td>&amp;prod;</td>
<td>&amp;#8719;</td>
<td class="key"></td>
<td>&amp;sum;</td>
<td>&amp;#8721;</td></tr>
<tr>
<td class="key">&#8722;</td>
<td>&amp;minus;</td>
<td>&amp;#8722;</td>
<td class="key">&#8727;</td>
<td>&amp;lowast;</td>
<td>&amp;#8727;</td>
<td class="key"></td>
<td>&amp;radic;</td>
<td>&amp;#8730;</td>
<td class="key"></td>
<td>&amp;prop;</td>
<td>&amp;#8733;</td>
<td class="key"></td>
<td>&amp;infin;</td>
<td>&amp;#8734;</td></tr>
<tr>
<td class="key"></td>
<td>&amp;ang;</td>
<td>&amp;#8736;</td>
<td class="key"></td>
<td>&amp;and;</td>
<td>&amp;#8743;</td>
<td class="key"></td>
<td>&amp;or;</td>
<td>&amp;#8744;</td>
<td class="key"></td>
<td>&amp;cap;</td>
<td>&amp;#8745;</td>
<td class="key"></td>
<td>&amp;cup;</td>
<td>&amp;#8746;</td></tr>
<tr>
<td class="key"></td>
<td>&amp;int;</td>
<td>&amp;#8747;</td>
<td class="key"></td>
<td>&amp;there4;</td>
<td>&amp;#8756;</td>
<td class="key"></td>
<td>&amp;sim;</td>
<td>&amp;#8764;</td>
<td class="key"></td>
<td>&amp;cong;</td>
<td>&amp;#8773;</td>
<td class="key"></td>
<td>&amp;asymp;</td>
<td>&amp;#8776;</td></tr>
<tr>
<td class="key"></td>
<td>&amp;ne;</td>
<td>&amp;#8800;</td>
<td class="key"></td>
<td>&amp;equiv;</td>
<td>&amp;#8801;</td>
<td class="key"></td>
<td>&amp;le;</td>
<td>&amp;#8804;</td>
<td class="key"></td>
<td>&amp;ge;</td>
<td>&amp;#8805;</td>
<td class="key">&#8834;</td>
<td>&amp;sub;</td>
<td>&amp;#8834;</td></tr>
<tr>
<td class="key">&#8835;</td>
<td>&amp;sup;</td>
<td>&amp;#8835;</td>
<td class="key">&#8836;</td>
<td>&amp;nsub;</td>
<td>&amp;#8836;</td>
<td class="key">&#8838;</td>
<td>&amp;sube;</td>
<td>&amp;#8838;</td>
<td class="key">&#8839;</td>
<td>&amp;supe;</td>
<td>&amp;#8839;</td>
<td class="key"></td>
<td>&amp;oplus;</td>
<td>&amp;#8853;</td></tr>
<tr>
<td class="key">&#8855;</td>
<td>&amp;otimes;</td>
<td>&amp;#8855;</td>
<td class="key"></td>
<td>&amp;perp;</td>
<td>&amp;#8869;</td>
<td class="key">&#8901;</td>
<td>&amp;sdot;</td>
<td>&amp;#8901;</td>
<td class="key">?</td>
<td>&amp;lceil;</td>
<td>&amp;#8968;</td>
<td class="key">?</td>
<td>&amp;rceil;</td>
<td>&amp;#8969;</td></tr>
<tr>
<td class="key">?</td>
<td>&amp;lfloor;</td>
<td>&amp;#8970;</td>
<td class="key">?</td>
<td>&amp;rfloor;</td>
<td>&amp;#8971;</td>
<td class="key">?</td>
<td>&amp;lang;</td>
<td>&amp;#9001;</td>
<td class="key">?</td>
<td>&amp;rang;</td>
<td>&amp;#9002;</td>
<td class="key">&#9674;</td>
<td>&amp;loz;</td>
<td>&amp;#9674;</td></tr>
<tr>
<td class="key">&#9824;</td>
<td>&amp;spades;</td>
<td>&amp;#9824;</td>
<td class="key">&#9827;</td>
<td>&amp;clubs;</td>
<td>&amp;#9827;</td>
<td class="key">&#9829;</td>
<td>&amp;hearts;</td>
<td>&amp;#9829;</td>
<td class="key">&#9830;</td>
<td>&amp;diams;</td>
<td>&amp;#9830;</td></tr></tbody></table>
<h2>重要的国际标记<br>markup-significant and internationalization characters</h2>
<table width="778">
<tbody>
<tr>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
<th>显示</th>
<th>名称</th>
<th>编号</th>
</tr>
<tr>
<td class="key">"</td>
<td>&amp;quot;</td>
<td>&amp;#34;</td>
<td class="key">&amp;</td>
<td>&amp;amp;</td>
<td>&amp;#38;</td>
<td class="key">&lt;</td>
<td>&amp;lt;</td>
<td>&amp;#60;</td>
<td class="key">&gt;</td>
<td>&amp;gt;</td>
<td>&amp;#62;</td>
<td class="key">&#338;</td>
<td>&amp;OElig;</td>
<td>&amp;#338;</td></tr>
<tr>
<td class="key">&#339;</td>
<td>&amp;oelig;</td>
<td>&amp;#339;</td>
<td class="key">&#352;</td>
<td>&amp;Scaron;</td>
<td>&amp;#352;</td>
<td class="key">&#353;</td>
<td>&amp;scaron;</td>
<td>&amp;#353;</td>
<td class="key">&#376;</td>
<td>&amp;Yuml;</td>
<td>&amp;#376;</td>
<td class="key">&#710;</td>
<td>&amp;circ;</td>
<td>&amp;#710;</td></tr>
<tr>
<td class="key">&#732;</td>
<td>&amp;tilde;</td>
<td>&amp;#732;</td>
<td class="key">&#8194;</td>
<td>&amp;ensp;</td>
<td>&amp;#8194;</td>
<td class="key">&#8195;</td>
<td>&amp;emsp;</td>
<td>&amp;#8195;</td>
<td class="key">&#8201;</td>
<td>&amp;thinsp;</td>
<td>&amp;#8201;</td>
<td class="key">&#8204;</td>
<td>&amp;zwnj;</td>
<td>&amp;#8204;</td></tr>
<tr>
<td class="key">&#8205;</td>
<td>&amp;zwj;</td>
<td>&amp;#8205;</td>
<td class="key">&#8206;</td>
<td>&amp;lrm;</td>
<td>&amp;#8206;</td>
<td class="key">&#8207;</td>
<td>&amp;rlm;</td>
<td>&amp;#8207;</td>
<td class="key"></td>
<td>&amp;ndash;</td>
<td>&amp;#8211;</td>
<td class="key"></td>
<td>&amp;mdash;</td>
<td>&amp;#8212;</td></tr>
<tr>
<td class="key"></td>
<td>&amp;lsquo;</td>
<td>&amp;#8216;</td>
<td class="key"></td>
<td>&amp;rsquo;</td>
<td>&amp;#8217;</td>
<td class="key">&#8218;</td>
<td>&amp;sbquo;</td>
<td>&amp;#8218;</td>
<td class="key"></td>
<td>&amp;ldquo;</td>
<td>&amp;#8220;</td>
<td class="key"></td>
<td>&amp;rdquo;</td>
<td>&amp;#8221;</td></tr>
<tr>
<td class="key">&#8222;</td>
<td>&amp;bdquo;</td>
<td>&amp;#8222;</td>
<td class="key">&#8224;</td>
<td>&amp;dagger;</td>
<td>&amp;#8224;</td>
<td class="key">&#8225;</td>
<td>&amp;Dagger;</td>
<td>&amp;#8225;</td>
<td class="key"></td>
<td>&amp;permil;</td>
<td>&amp;#8240;</td>
<td class="key">&#8249;</td>
<td>&amp;lsaquo;</td>
<td>&amp;#8249;</td></tr>
<tr>
<td class="key">&#8250;</td>
<td>&amp;rsaquo;</td>
<td>&amp;#8250;</td>
<td class="key"></td>
<td>&amp;euro;</td>
<td>&amp;#8364;</td></tr></tbody></table>
</div>
<div class="commonContainer">
<hr>
<h2>JavaScript转义符</h2>
<table width="480">
<tbody><tr>
<th width="35%">转义序列</th>
<th width="65%">字符</th></tr>
<tr valign="top">
<td width="35%">\b</td>
<td width="65%">退格</td></tr>
<tr valign="top">
<td width="35%">\f</td>
<td width="65%">走纸换页</td></tr>
<tr valign="top">
<td width="35%">\n</td>
<td width="65%">换行</td></tr>
<tr valign="top">
<td width="35%">\r</td>
<td width="65%">回车</td></tr>
<tr valign="top">
<td width="35%">\t</td>
<td width="65%">横向跳格 (Ctrl-I)</td></tr>
<tr valign="top">
<td width="35%">\'</td>
<td width="65%">单引号</td></tr>
<tr valign="top">
<td width="35%">\"</td>
<td width="65%">双引号</td></tr>
<tr valign="top">
<td width="35%">\\</td>
<td width="65%">反斜杠</td>
</tr>
</tbody></table>
<p>编程的时候要注意特殊字符的问题,很多运行时出现的问题都是因为特殊字符的出现而引起的。
</p>
<p>注意,由于反斜杠本身用作转义符,因此不能直接在脚本中键入一个反斜杠。如果要产生一个反斜杠,必须一起键入两个反斜杠 (\\)。
</p>
</div>
<div class="commonContainer">
<hr>
<p>
</p><h2 align="left"><strong>编码转换</strong>(to Unicode)</h2>
<p>(程序代码来源于网络) </p>
<p> </p>
<p><strong>Js版 </strong></p>
<pre>&lt;script&gt;
&nbsp;&nbsp;&nbsp;&nbsp; test = "你好abc"
&nbsp;&nbsp;&nbsp;&nbsp; str = ""
&nbsp;&nbsp;&nbsp;&nbsp; for( i=0;&nbsp;&nbsp;&nbsp; i&lt;test.length; i++ )
&nbsp;&nbsp;&nbsp;&nbsp; {
&nbsp;&nbsp;&nbsp;&nbsp; temp = test.charCodeAt(i).toString(16);
&nbsp;&nbsp;&nbsp;&nbsp; str&nbsp;&nbsp;&nbsp; += "\\u"+ new Array(5-String(temp).length).join("0") +temp;
&nbsp;&nbsp;&nbsp;&nbsp; }
&nbsp;&nbsp;&nbsp;&nbsp; document.write (str)
&lt;/script&gt;</pre>
<br>
<br>
<p><strong>vbs版</strong></p>
<br>
<pre>Function Unicode(str1)
&nbsp;&nbsp;&nbsp;&nbsp; Dim str,temp
&nbsp;&nbsp;&nbsp;&nbsp; str = ""
&nbsp;&nbsp;&nbsp;&nbsp; For i=1&nbsp;&nbsp;&nbsp; to len(str1)
&nbsp;&nbsp;&nbsp;&nbsp; temp = Hex(AscW(Mid(str1,i,1)))
&nbsp;&nbsp;&nbsp;&nbsp; If len(temp) &lt; 5 Then&nbsp;&nbsp;&nbsp; temp = right("0000" &amp; temp, 4)
&nbsp;&nbsp;&nbsp;&nbsp; str = str &amp; "\u" &amp; temp
&nbsp;&nbsp;&nbsp;&nbsp; Next
&nbsp;&nbsp;&nbsp;&nbsp; Unicode = str
End Function</pre>
<br>
<br>
<p>
</p><pre>Function htmlentities(str)
&nbsp;&nbsp;&nbsp;&nbsp; For i = 1 to Len(str)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char = mid(str, i, 1)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Ascw(char) &gt; 128 then
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; htmlentities = htmlentities &amp; "&amp;#" &amp; Ascw(char) &amp; ";"
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; htmlentities = htmlentities &amp; char
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End if
&nbsp;&nbsp;&nbsp;&nbsp; Next
End Function</pre>
<p></p>
<p> </p>
<p><strong>coldfusion<span class="Section1" style="LAYOUT-GRID: 15.6pt none"></span></strong></p>
<p> </p>
<pre>function nochaoscode(str)
{
&nbsp;&nbsp;&nbsp;&nbsp; var new_str = “”;
&nbsp;&nbsp;&nbsp;&nbsp; for(i=1; i lte len(str);i=i+1){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(asc(mid(str,i,1)) lt 128){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new_str = new_str &amp; mid(str,i,1);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }else{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new_str = new_str &amp;&amp;##” &amp; asc(mid(str,i,1));
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }
&nbsp;&nbsp;&nbsp;&nbsp; }
&nbsp;&nbsp;&nbsp;&nbsp; return new_str;
}</pre>
<p> </p>
<hr>
<p> </p>
<p>附:</p>
<p>在php中我们可以用mbstring的mb_convert_encoding函数实现这个正向及反向的转化。 如:</p>
<p><br>
</p>
<p>mb_convert_encoding ("你好", "HTML-ENTITIES", "gb2312"); //输出:&amp;#20320;&amp;#22909;
</p><p>mb_convert_encoding ("&amp;#20320;&amp;#22909;", "gb2312", "HTML-ENTITIES"); //输出:你好
</p><p> </p>
<p>如果需要对整个页面转化,则只需要在php文件的头部加上这三行代码:</p>
<p> </p>
<p>mb_internal_encoding("gb2312"); // 这里的gb2312是你网站原来的编码
</p><p>mb_http_output("HTML-ENTITIES");
</p><p>ob_start('mb_output_handler');
</p>
</div>
<p style="TEXT-INDENT: 2em"><strong>来源:HTML转义字符:</strong> <a href="http://114.xixik.com/character/">http://114.xixik.com/character/</a></p>
<p style="TEXT-INDENT: 2em"><strong>相关:正则表达式:</strong> <a href="http://114.xixik.com/regex/">http://114.xixik.com/regex/</a></p>
<script type="text/javascript" async="" charset="utf-8" src="./常用HTML转义字符,html转义符,JavaScript转义符,html转义字符表,HTML语言特殊字符对照表(ISO Latin-1字符集) - 来源:嘻嘻网 114.xixik.com_files/core.php"></script><script src="./常用HTML转义字符,html转义符,JavaScript转义符,html转义字符表,HTML语言特殊字符对照表(ISO Latin-1字符集) - 来源:嘻嘻网 114.xixik.com_files/c.php" language="JavaScript" charset="gb2312"></script>
</body></html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化