Numeric character reference: Difference between revisions

Content deleted Content added
Reverted good faith edits by 151.182.246.43 (talk): Unexplained deletion. (TW)
Example: add ASCII characters
Line 2:
A '''numeric character reference''' ('''NCR''') is a common [[markup (computer programming)|markup]] construct used in [[SGML]] and SGML-derived markup languages such as [[HTML]] and [[XML]]. It consists of a short sequence of [[character (computing)|character]]s that, in turn, represents a single character. Since [[SGML|WebSgml]], [[XML]] and [[HTML 4]], the code points of the [[Universal Character Set]] (UCS) of [[Unicode]] are used. NCRs are typically used in order to represent characters that are not [[plain text#Encoding|directly encodable]] in a particular document (for example, because they are international characters that don't fit in the 8-bit character set being used, or because they have special syntactic meaning in the language). When the document is interpreted by a markup-aware reader, each NCR is treated as if it were the character it represents.
 
==ExampleExamples==
In SGML, HTML, and XML, the following are all valid numeric character references for the Greek capital letter Sigma
{| class="wikitable" border="1"
Line 49:
|-
| U+00DF || Hexadecimal || ß || ß
|}
 
The following is a list of numeric character refrences for the printable [[ASCII]] characters:
{| class="wikitable"
! [[Unicode#Upluslink|Unicode character]]
! Character<br />Reference<br />(decimal)
! Character<br />Reference<br />(hexidecimal)
! Effect
|-
| U+0020 || &amp;#32; || &amp;#x20; || &#32; (space)
|-
| U+0021 || &amp;#33; || &amp;#x21; || &#33;
|-
| U+0022 || &amp;#34; || &amp;#x22; || &#34;
|-
| U+0023 || &amp;#35; || &amp;#x23; || &#35;
|-
| U+0024 || &amp;#36; || &amp;#x24; || &#36;
|-
| U+0025 || &amp;#37; || &amp;#x25; || &#37;
|-
| U+0026 || &amp;#38; || &amp;#x26; || &#38;
|-
| U+0027 || &amp;#39; || &amp;#x27; || &#39;
|-
| U+0028 || &amp;#40; || &amp;#x28; || &#40;
|-
| U+0029 || &amp;#41; || &amp;#x29; || &#41;
|-
| U+002A || &amp;#42; || &amp;#x2A; || &#42;
|-
| U+002B || &amp;#43; || &amp;#x2B; || &#43;
|-
| U+002C || &amp;#44; || &amp;#x2C; || &#44;
|-
| U+002D || &amp;#45; || &amp;#x2D; || &#45;
|-
| U+002E || &amp;#46; || &amp;#x2E; || &#46;
|-
| U+002F || &amp;#47; || &amp;#x2F; || &#47;
|-
| U+0030 || &amp;#48; || &amp;#x30; || &#48;
|-
| U+0031 || &amp;#49; || &amp;#x31; || &#49;
|-
| U+0032 || &amp;#50; || &amp;#x32; || &#50;
|-
| U+0033 || &amp;#51; || &amp;#x33; || &#51;
|-
| U+0034 || &amp;#52; || &amp;#x34; || &#52;
|-
| U+0035 || &amp;#53; || &amp;#x35; || &#53;
|-
| U+0036 || &amp;#54; || &amp;#x36; || &#54;
|-
| U+0037 || &amp;#55; || &amp;#x37; || &#55;
|-
| U+0038 || &amp;#56; || &amp;#x38; || &#56;
|-
| U+0039 || &amp;#57; || &amp;#x39; || &#57;
|-
| U+003A || &amp;#58; || &amp;#x3A; || &#58;
|-
| U+003B || &amp;#59; || &amp;#x3B; || &#59;
|-
| U+003C || &amp;#60; || &amp;#x3C; || &#60;
|-
| U+003D || &amp;#61; || &amp;#x3D; || &#61;
|-
| U+003E || &amp;#62; || &amp;#x3E; || &#62;
|-
| U+003F || &amp;#63; || &amp;#x3F; || &#63;
|-
| U+0040 || &amp;#64; || &amp;#x40; || &#64;
|-
| U+0041 || &amp;#65; || &amp;#x41; || &#65;
|-
| U+0042 || &amp;#66; || &amp;#x42; || &#66;
|-
| U+0043 || &amp;#67; || &amp;#x43; || &#67;
|-
| U+0044 || &amp;#68; || &amp;#x44; || &#68;
|-
| U+0045 || &amp;#69; || &amp;#x45; || &#69;
|-
| U+0046 || &amp;#70; || &amp;#x46; || &#70;
|-
| U+0047 || &amp;#71; || &amp;#x47; || &#71;
|-
| U+0048 || &amp;#72; || &amp;#x48; || &#72;
|-
| U+0049 || &amp;#73; || &amp;#x49; || &#73;
|-
| U+004A || &amp;#74; || &amp;#x4A; || &#74;
|-
| U+004B || &amp;#75; || &amp;#x4B; || &#75;
|-
| U+004C || &amp;#76; || &amp;#x4C; || &#76;
|-
| U+004D || &amp;#77; || &amp;#x4D; || &#77;
|-
| U+004E || &amp;#78; || &amp;#x4E; || &#78;
|-
| U+004F || &amp;#79; || &amp;#x4F; || &#79;
|-
| U+0050 || &amp;#80; || &amp;#x50; || &#80;
|-
| U+0051 || &amp;#81; || &amp;#x51; || &#81;
|-
| U+0052 || &amp;#82; || &amp;#x52; || &#82;
|-
| U+0053 || &amp;#83; || &amp;#x53; || &#83;
|-
| U+0054 || &amp;#84; || &amp;#x54; || &#84;
|-
| U+0055 || &amp;#85; || &amp;#x55; || &#85;
|-
| U+0056 || &amp;#86; || &amp;#x56; || &#86;
|-
| U+0057 || &amp;#87; || &amp;#x57; || &#87;
|-
| U+0058 || &amp;#88; || &amp;#x58; || &#88;
|-
| U+0059 || &amp;#89; || &amp;#x59; || &#89;
|-
| U+005A || &amp;#90; || &amp;#x5A; || &#90;
|-
| U+005B || &amp;#91; || &amp;#x5B; || &#91;
|-
| U+005C || &amp;#92; || &amp;#x5C; || &#92;
|-
| U+005D || &amp;#93; || &amp;#x5D; || &#93;
|-
| U+005E || &amp;#94; || &amp;#x5E; || &#94;
|-
| U+005F || &amp;#95; || &amp;#x5F; || &#95;
|-
| U+0060 || &amp;#96; || &amp;#x60; || &#96;
|-
| U+0061 || &amp;#97; || &amp;#x61; || &#97;
|-
| U+0062 || &amp;#98; || &amp;#x62; || &#98;
|-
| U+0063 || &amp;#99; || &amp;#x63; || &#99;
|-
| U+0064 || &amp;#100; || &amp;#x64; || &#100;
|-
| U+0065 || &amp;#101; || &amp;#x65; || &#101;
|-
| U+0066 || &amp;#102; || &amp;#x66; || &#102;
|-
| U+0067 || &amp;#103; || &amp;#x67; || &#103;
|-
| U+0068 || &amp;#104; || &amp;#x68; || &#104;
|-
| U+0069 || &amp;#105; || &amp;#x69; || &#105;
|-
| U+006A || &amp;#106; || &amp;#x6A; || &#106;
|-
| U+006B || &amp;#107; || &amp;#x6B; || &#107;
|-
| U+006C || &amp;#108; || &amp;#x6C; || &#108;
|-
| U+006D || &amp;#109; || &amp;#x6D; || &#109;
|-
| U+006E || &amp;#110; || &amp;#x6E; || &#110;
|-
| U+006F || &amp;#111; || &amp;#x6F; || &#111;
|-
| U+0070 || &amp;#112; || &amp;#x70; || &#112;
|-
| U+0071 || &amp;#113; || &amp;#x71; || &#113;
|-
| U+0072 || &amp;#114; || &amp;#x72; || &#114;
|-
| U+0073 || &amp;#115; || &amp;#x73; || &#115;
|-
| U+0074 || &amp;#116; || &amp;#x74; || &#116;
|-
| U+0075 || &amp;#117; || &amp;#x75; || &#117;
|-
| U+0076 || &amp;#118; || &amp;#x76; || &#118;
|-
| U+0077 || &amp;#119; || &amp;#x77; || &#119;
|-
| U+0078 || &amp;#120; || &amp;#x78; || &#120;
|-
| U+0079 || &amp;#121; || &amp;#x79; || &#121;
|-
| U+007A || &amp;#122; || &amp;#x7A; || &#122;
|-
| U+007B || &amp;#123; || &amp;#x7B; || &#123;
|-
| U+007C || &amp;#124; || &amp;#x7C; || &#124;
|-
| U+007D || &amp;#125; || &amp;#x7D; || &#125;
|-
| U+007E || &amp;#126; || &amp;#x7E; || &#126;
|}