Template:Char-ref

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(genesis, port unchanged from Wikipedia)
 
(Oops-the printable!)
Line 1: Line 1:
 +
==ASCII printable characters==
 +
Codes 20<sub>[[hexadecimal|hex]]</sub> to 7E<sub>[[hexadecimal|hex]]</sub>, known as the printable characters, represent letters, digits, [[punctuation marks]], and a few miscellaneous symbols. There are 95 printable characters in total.
  
{| class="wikitable" style="text-align: center"
+
Code 20<sub>[[hexadecimal|hex]]</sub>, the [[Space (punctuation)|space character]], denotes the space between words, as produced by the space-bar of a keyboard. Since the space character is considered an invisible graphic (rather than a control character)<ref name="FOOTNOTEMackenzie1980223">[[#CITEREFMackenzie1980|Mackenzie 1980]], p.&nbsp;223.</ref><ref name="RFC20_1968" /> and thus would not normally be visible, it is represented here by [[Unicode]] character U+2420 "␠"; Unicode characters U+2422 "␢" and U+2423 "␣" are also available for use when a visible representation of a space is necessary.
 +
 
 +
Code 7F<sub>[[hexadecimal|hex]]</sub> corresponds to the non-printable "Delete" (DEL) control character and is therefore omitted from this chart; it is covered in the previous section's chart.
 +
 
 +
Earlier versions of ASCII used the up-arrow instead of the [[caret]] (5E<sub>[[hexadecimal|hex]]</sub>) and the left-arrow instead of the [[underscore]] (5F<sub>[[hexadecimal|hex]]</sub>).<ref>[http://www.wps.com/projects/codes/X3.4-1963/index.html ASA X3.4-1963].</ref>
 +
{| style="background:none; text-align:center;"
 +
|- style="vertical-align:top;"
 +
|
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
!Binary !! Oct !! Dec !! Hex !! Glyph
 +
|-
 +
|010 0000 ||style="background:lightblue;"| 040 || style="background:#cff;"| 32 ||style="background:lightblue;"| 20 || [[space (punctuation)|␠]]
 +
|-
 +
|010 0001 ||style="background:lightblue;"| 041 || style="background:#cff;"| 33 ||style="background:lightblue;"| 21 || [[Exclamation mark|!]]
 +
|-
 +
|010 0010 ||style="background:lightblue;"| 042 || style="background:#cff;"| 34 ||style="background:lightblue;"| 22 || [[Quotation mark|"]]
 +
|-
 +
|010 0011 ||style="background:lightblue;"| 043 || style="background:#cff;"| 35 ||style="background:lightblue;"| 23 || [[Number sign|#]]
 +
|-
 +
|010 0100 ||style="background:lightblue;"| 044 || style="background:#cff;"| 36 ||style="background:lightblue;"| 24 || [[Dollar sign|$]]
 +
|-
 +
|010 0101 ||style="background:lightblue;"| 045 || style="background:#cff;"| 37 ||style="background:lightblue;"| 25 || [[Percent sign|%]]
 +
|-
 +
|010 0110 ||style="background:lightblue;"| 046 || style="background:#cff;"| 38 ||style="background:lightblue;"| 26 || [[Ampersand|&]]
 +
|-
 +
|010 0111 ||style="background:lightblue;"| 047 || style="background:#cff;"| 39 ||style="background:lightblue;"| 27 || [[apostrophe|']]
 +
|-
 +
|010 1000 ||style="background:lightblue;"| 050 || style="background:#cff;"| 40 ||style="background:lightblue;"| 28 || [[Parentheses|(]]
 +
|-
 +
|010 1001 ||style="background:lightblue;"| 051 || style="background:#cff;"| 41 ||style="background:lightblue;"| 29 || [[Parentheses|)]]
 +
|-
 +
|010 1010 ||style="background:lightblue;"| 052 || style="background:#cff;"| 42 ||style="background:lightblue;"| 2A || [[Asterisk|*]]
 +
|-
 +
|010 1011 ||style="background:lightblue;"| 053 || style="background:#cff;"| 43 ||style="background:lightblue;"| 2B || [[Plus sign|+]]
 +
|-
 +
|010 1100 ||style="background:lightblue;"| 054 || style="background:#cff;"| 44 ||style="background:lightblue;"| 2C || [[Comma|,]]
 +
|-
 +
|010 1101 ||style="background:lightblue;"| 055 || style="background:#cff;"| 45 ||style="background:lightblue;"| 2D || [[Hyphen-minus|-]]
 +
|-
 +
|010 1110 ||style="background:lightblue;"| 056 || style="background:#cff;"| 46 ||style="background:lightblue;"| 2E || [[Full stop|.]]
 +
|-
 +
|010 1111 ||style="background:lightblue;"| 057 || style="background:#cff;"| 47 ||style="background:lightblue;"| 2F || [[Slash (punctuation)|/]]
 +
|-
 +
|011 0000 ||style="background:lightblue;"| 060 || style="background:#cff;"| 48 ||style="background:lightblue;"| 30 || [[0 (number)|0]]
 +
|-
 +
|011 0001 ||style="background:lightblue;"| 061 || style="background:#cff;"| 49 ||style="background:lightblue;"| 31 || [[1 (number)|1]]
 +
|-
 +
|011 0010 ||style="background:lightblue;"| 062 || style="background:#cff;"| 50 ||style="background:lightblue;"| 32 || [[2 (number)|2]]
 +
|-
 +
|011 0011 ||style="background:lightblue;"| 063 || style="background:#cff;"| 51 ||style="background:lightblue;"| 33 || [[3 (number)|3]]
 +
|-
 +
|011 0100 ||style="background:lightblue;"| 064 || style="background:#cff;"| 52 ||style="background:lightblue;"| 34 || [[4 (number)|4]]
 +
|-
 +
|011 0101 ||style="background:lightblue;"| 065 || style="background:#cff;"| 53 ||style="background:lightblue;"| 35 || [[5 (number)|5]]
 +
|-
 +
|011 0110 ||style="background:lightblue;"| 066 || style="background:#cff;"| 54 ||style="background:lightblue;"| 36 || [[6 (number)|6]]
 +
|-
 +
|011 0111 ||style="background:lightblue;"| 067 || style="background:#cff;"| 55 ||style="background:lightblue;"| 37 || [[7 (number)|7]]
 +
|-
 +
|011 1000 ||style="background:lightblue;"| 070 || style="background:#cff;"| 56 ||style="background:lightblue;"| 38 || [[8 (number)|8]]
 +
|-
 +
|011 1001 ||style="background:lightblue;"| 071 || style="background:#cff;"| 57 ||style="background:lightblue;"| 39 || [[9 (number)|9]]
 +
|-
 +
|011 1010 ||style="background:lightblue;"| 072 || style="background:#cff;"| 58 ||style="background:lightblue;"| 3A || [[Colon (punctuation)|:]]
 +
|-
 +
|011 1011 ||style="background:lightblue;"| 073 || style="background:#cff;"| 59 ||style="background:lightblue;"| 3B || [[Semicolon|;]]
 +
|-
 +
|011 1100 ||style="background:lightblue;"| 074 || style="background:#cff;"| 60 ||style="background:lightblue;"| 3C || [[Less-than sign|<]]
 +
|-
 +
|011 1101 ||style="background:lightblue;"| 075 || style="background:#cff;"| 61 ||style="background:lightblue;"| 3D || [[Equals sign|=]]
 +
|-
 +
|011 1110 ||style="background:lightblue;"| 076 || style="background:#cff;"| 62 ||style="background:lightblue;"| 3E || [[Greater-than sign|>]]
 +
|-
 +
|011 1111 ||style="background:lightblue;"| 077 || style="background:#cff;"| 63 ||style="background:lightblue;"| 3F || [[Question mark|?]]
 +
|}
 +
|
 +
{| class="wikitable" style="text-align:center;"
 +
|- style="vertical-align:bottom;"
 +
!Binary !! Oct !! Dec !! Hex !! Glyph
 +
|-
 +
|100 0000 ||style="background:lightblue;"| 100 || style="background:#cff;"| 64 ||style="background:lightblue;"| 40 || [[@]]
 +
|-
 +
|100 0001 ||style="background:lightblue;"| 101 || style="background:#cff;"| 65 ||style="background:lightblue;"| 41 || [[A]]
 +
|-
 +
|100 0010 ||style="background:lightblue;"| 102 || style="background:#cff;"| 66 ||style="background:lightblue;"| 42 || [[B]]
 +
|-
 +
|100 0011 ||style="background:lightblue;"| 103 || style="background:#cff;"| 67 ||style="background:lightblue;"| 43 || [[C]]
 +
|-
 +
|100 0100 ||style="background:lightblue;"| 104 || style="background:#cff;"| 68 ||style="background:lightblue;"| 44 || [[D]]
 +
|-
 +
|100 0101 ||style="background:lightblue;"| 105 || style="background:#cff;"| 69 ||style="background:lightblue;"| 45 || [[E]]
 +
|-
 +
|100 0110 ||style="background:lightblue;"| 106 || style="background:#cff;"| 70 ||style="background:lightblue;"| 46 || [[F]]
 +
|-
 +
|100 0111 ||style="background:lightblue;"| 107 || style="background:#cff;"| 71 ||style="background:lightblue;"| 47 || [[G]]
 +
|-
 +
|100 1000 ||style="background:lightblue;"| 110 || style="background:#cff;"| 72 ||style="background:lightblue;"| 48 || [[H]]
 +
|-
 +
|100 1001 ||style="background:lightblue;"| 111 || style="background:#cff;"| 73 ||style="background:lightblue;"| 49 || [[I]]
 +
|-
 +
|100 1010 ||style="background:lightblue;"| 112 || style="background:#cff;"| 74 ||style="background:lightblue;"| 4A || [[J]]
 +
|-
 +
|100 1011 ||style="background:lightblue;"| 113 || style="background:#cff;"| 75 ||style="background:lightblue;"| 4B || [[K]]
 +
|-
 +
|100 1100 ||style="background:lightblue;"| 114 || style="background:#cff;"| 76 ||style="background:lightblue;"| 4C || [[L]]
 +
|-
 +
|100 1101 ||style="background:lightblue;"| 115 || style="background:#cff;"| 77 ||style="background:lightblue;"| 4D || [[M]]
 +
|-
 +
|100 1110 ||style="background:lightblue;"| 116 || style="background:#cff;"| 78 ||style="background:lightblue;"| 4E || [[N]]
 +
|-
 +
|100 1111 ||style="background:lightblue;"| 117 || style="background:#cff;"| 79 ||style="background:lightblue;"| 4F || [[O]]
 +
|-
 +
|101 0000 ||style="background:lightblue;"| 120 || style="background:#cff;"| 80 ||style="background:lightblue;"| 50 || [[P]]
 +
|-
 +
|101 0001 ||style="background:lightblue;"| 121 || style="background:#cff;"| 81 ||style="background:lightblue;"| 51 || [[Q]]
 +
|-
 +
|101 0010 ||style="background:lightblue;"| 122 || style="background:#cff;"| 82 ||style="background:lightblue;"| 52 || [[R]]
 +
|-
 +
|101 0011 ||style="background:lightblue;"| 123 || style="background:#cff;"| 83 ||style="background:lightblue;"| 53 || [[S]]
 +
|-
 +
|101 0100 ||style="background:lightblue;"| 124 || style="background:#cff;"| 84 ||style="background:lightblue;"| 54 || [[T]]
 +
|-
 +
|101 0101 ||style="background:lightblue;"| 125 || style="background:#cff;"| 85 ||style="background:lightblue;"| 55 || [[U]]
 +
|-
 +
|101 0110 ||style="background:lightblue;"| 126 || style="background:#cff;"| 86 ||style="background:lightblue;"| 56 || [[V]]
 +
|-
 +
|101 0111 ||style="background:lightblue;"| 127 || style="background:#cff;"| 87 ||style="background:lightblue;"| 57 || [[W]]
 +
|-
 +
|101 1000 ||style="background:lightblue;"| 130 || style="background:#cff;"| 88 ||style="background:lightblue;"| 58 || [[X]]
 +
|-
 +
|101 1001 ||style="background:lightblue;"| 131 || style="background:#cff;"| 89 ||style="background:lightblue;"| 59 || [[Y]]
 +
|-
 +
|101 1010 ||style="background:lightblue;"| 132 || style="background:#cff;"| 90 ||style="background:lightblue;"| 5A || [[Z]]
 +
|-
 +
|101 1011 ||style="background:lightblue;"| 133 || style="background:#cff;"| 91 ||style="background:lightblue;"| 5B || [[Square brackets|<nowiki>[</nowiki>]]
 
|-
 
|-
! Binary !! Oct !! Dec !! Hex !! Abbr !! <ref group="lower-alpha">The [[Unicode]] characters from the area U+2400 to U+2421 reserved for representing control characters when it is necessary to print or display them rather than have them perform their intended function. Some browsers may not display these properly.</ref> !! <ref group="lower-alpha">[[Caret notation]] often used to represent control characters on a terminal. On most text terminals, holding down the {{keypress|[[Control key|Ctrl]]}} key while typing the second character will type the control character. Sometimes the shift key is not needed, for instance <tt>^@</tt> may be typable with just Ctrl and 2.</ref> !! <ref group="lower-alpha">Character Escape Codes in [[C (programming language)|C programming language]] and many other languages influenced by it, such as [[Java (programming language)|Java]] and [[Perl]] (though not all implementations necessarily support all escape codes).</ref> !! Name
+
|101 1100 ||style="background:lightblue;"| 134 || style="background:#cff;"| 92 ||style="background:lightblue;"| 5C || [[Backslash|\]]
 
|-
 
|-
| 000 0000 || style="background:lightblue;" | 000 || style="background:#CFF;" | 0 || style="background:lightblue;" | 00
+
|101 1101 ||style="background:lightblue;"| 135 || style="background:#cff;"| 93 ||style="background:lightblue;"| 5D || [[Square brackets|<nowiki>]</nowiki>]]
| NUL || style="font-size:large;" | ␀ || <tt>^@</tt> || <tt>\0</tt> || style="text-align:left;" | [[Null character]]
+
 
|-
 
|-
| 000 0001 || style="background:lightblue;" | 001 || style="background:#CFF;" | 1 || style="background:lightblue;" | 01
+
|101 1110 ||style="background:lightblue;"| 136 || style="background:#cff;"| 94 ||style="background:lightblue;"| 5E || [[Caret|^]]
| SOH || style="font-size:large;" | ␁ || <tt>^A</tt> || || style="text-align:left;" | [[Start-of-Header|Start of Header]]
+
 
|-
 
|-
| 000 0010 || style="background:lightblue;" | 002 || style="background:#CFF;" | 2 || style="background:lightblue;" | 02
+
|101 1111 ||style="background:lightblue;"| 137 || style="background:#cff;"| 95 ||style="background:lightblue;"| 5F || [[Underscore|_]]
| STX || style="font-size:large;" | ␂ || <tt>^B</tt> || || style="text-align:left;" | [[Start Of Text|Start of Text]]
+
|}
 +
|
 +
{| class="wikitable" style="text-align:center;"
 +
|- style="vertical-align:bottom;"
 +
!Binary !! Oct !! Dec !! Hex !! Glyph
 
|-
 
|-
| 000 0011 || style="background:lightblue;" | 003 || style="background:#CFF;" | 3 || style="background:lightblue;" | 03
+
|110 0000 ||style="background:lightblue;"| 140 || style="background:#cff;"| 96 ||style="background:lightblue;"| 60 || [[Grave accent|`]]
| ETX || style="font-size:large;" | ␃ || <tt>^C</tt> || || style="text-align:left;" | [[End-of-text character|End of Text]]
+
 
|-
 
|-
| 000 0100 || style="background:lightblue;" | 004 || style="background:#CFF;" | 4 || style="background:lightblue;" | 04
+
|110 0001 ||style="background:lightblue;"| 141 || style="background:#cff;"| 97 ||style="background:lightblue;"| 61 || [[a]]
<!-- Please note that the character below, U+2404, is correct. If you are seeing it as "ENQ", please upgrade your fonts as the one you have is buggy. -->
+
| EOT || style="font-size:large;" | ␄ || <tt>^D</tt> || || style="text-align:left;" | [[End-of-transmission character|End of Transmission]]
+
 
|-
 
|-
| 000 0101 || style="background:lightblue;" | 005 || style="background:#CFF;" | 5 || style="background:lightblue;" | 05
+
|110 0010 ||style="background:lightblue;"| 142 || style="background:#cff;"| 98 ||style="background:lightblue;"| 62 || [[b]]
<!-- Please note that the character below, U+2405, is correct. If you are seeing it as "EOT", please upgrade your fonts as the one you have is buggy. -->
+
| ENQ || style="font-size:large;" | ␅ || <tt>^E</tt> || || style="text-align:left;" | [[Enquiry character|Enquiry]]
+
 
|-
 
|-
| 000 0110 || style="background:lightblue;" | 006 || style="background:#CFF;" | 6 || style="background:lightblue;" | 06
+
|110 0011 ||style="background:lightblue;"| 143 || style="background:#cff;"| 99 ||style="background:lightblue;"| 63 || [[c]]
| ACK || style="font-size:large;" | ␆ || <tt>^F</tt> || || style="text-align:left;" | [[Acknowledge character|Acknowledgment]]
+
 
|-
 
|-
| 000 0111 || style="background:lightblue;" | 007 || style="background:#CFF;" | 7 || style="background:lightblue;" | 07
+
|110 0100 ||style="background:lightblue;"| 144 || style="background:#cff;"| 100 ||style="background:lightblue;"| 64 || [[d]]
| BEL || style="font-size:large;" | ␇ || <tt>^G</tt> || <tt>\a</tt> || style="text-align:left;" | [[Bell character|Bell]]
+
 
|-
 
|-
| 000 1000 || style="background:lightblue;" | 010 || style="background:#CFF;" | 8 || style="background:lightblue;" | 08
+
|110 0101 ||style="background:lightblue;"| 145 || style="background:#cff;"| 101 ||style="background:lightblue;"| 65 || [[e]]
| BS || style="font-size:large;" | ␈ || <tt>^H</tt> || <tt>\b</tt> || style="text-align:left;" | [[Backspace]]<ref group="lower-alpha">The Backspace character can also be entered by pressing the {{keypress|Backspace}} key on some systems.</ref><ref group="lower-alpha" name="bsp del mismatch"/>
+
 
|-
 
|-
| 000 1001 || style="background:lightblue;" | 011 || style="background:#CFF;" | 9 || style="background:lightblue;" | 09
+
|110 0110 ||style="background:lightblue;"| 146 || style="background:#cff;"| 102 ||style="background:lightblue;"| 66 || [[f]]
| HT || style="font-size:large;" | ␉ || <tt>^I</tt> || <tt>\t</tt> || style="text-align:left;" | [[Horizontal Tab]]<ref group="lower-alpha">The Tab character can also be entered by pressing the {{keypress|Tab}} key on most systems.</ref>
+
 
|-
 
|-
| 000 1010 || style="background:lightblue;" | 012 || style="background:#CFF;" | 10 || style="background:lightblue;" | 0A
+
|110 0111 ||style="background:lightblue;"| 147 || style="background:#cff;"| 103 ||style="background:lightblue;"| 67 || [[g]]
| LF || style="font-size:large;" | ␊ || <tt>^J</tt> || <tt>\n</tt> || style="text-align:left;" | [[Line feed]]
+
 
|-
 
|-
| 000 1011 || style="background:lightblue;" | 013 || style="background:#CFF;" | 11 || style="background:lightblue;" | 0B
+
|110 1000 ||style="background:lightblue;"| 150 || style="background:#cff;"| 104 ||style="background:lightblue;"| 68 || [[h]]
| VT || style="font-size:large;" | ␋ || <tt>^K</tt> || <tt>\v</tt> || style="text-align:left;" | [[Vertical Tab]]
+
 
|-
 
|-
| 000 1100 || style="background:lightblue;" | 014 || style="background:#CFF;" | 12 || style="background:lightblue;" | 0C
+
|110 1001 ||style="background:lightblue;"| 151 || style="background:#cff;"| 105 ||style="background:lightblue;"| 69 || [[i]]
| FF || style="font-size:large;" | ␌ || <tt>^L</tt> || <tt>\f</tt> || style="text-align:left;" | [[Form feed]]
+
 
|-
 
|-
| 000 1101 || style="background:lightblue;" | 015 || style="background:#CFF;" | 13 || style="background:lightblue;" | 0D
+
|110 1010 ||style="background:lightblue;"| 152 || style="background:#cff;"| 106 ||style="background:lightblue;"| 6A || [[j]]
| CR || style="font-size:large;" | ␍ || <tt>^M</tt> || <tt>\r</tt> || style="text-align:left;" | [[Carriage return]]<ref group="lower-alpha">The Carriage Return character can also be entered by pressing the {{keypress|Enter}} or {{keypress|Return}} key on most systems.</ref>
+
 
|-
 
|-
| 000 1110 || style="background:lightblue;" | 016 || style="background:#CFF;" | 14 || style="background:lightblue;" | 0E
+
|110 1011 ||style="background:lightblue;"| 153 || style="background:#cff;"| 107 ||style="background:lightblue;"| 6B || [[k]]
| SO || style="font-size:large;" | ␎ || <tt>^N</tt> || || style="text-align:left;" | [[Shift Out and Shift In characters|Shift Out]]
+
 
|-
 
|-
| 000 1111 || style="background:lightblue;" | 017 || style="background:#CFF;" | 15 || style="background:lightblue;" | 0F
+
|110 1100 ||style="background:lightblue;"| 154 || style="background:#cff;"| 108 ||style="background:lightblue;"| 6C || [[l]]
| SI || style="font-size:large;" | ␏ || <tt>^O</tt> || || style="text-align:left;" | [[Shift Out and Shift In characters|Shift In]]
+
 
|-
 
|-
| 001 0000 || style="background:lightblue;" | 020 || style="background:#CFF;" | 16 || style="background:lightblue;" | 10
+
|110 1101 ||style="background:lightblue;"| 155 || style="background:#cff;"| 109 ||style="background:lightblue;"| 6D || [[m]]
| DLE || style="font-size:large;" | ␐ || <tt>^P</tt> || || style="text-align:left;" | [[Data Link Escape]]
+
 
|-
 
|-
| 001 0001 || style="background:lightblue;" | 021 || style="background:#CFF;" | 17 || style="background:lightblue;" | 11
+
|110 1110 ||style="background:lightblue;"| 156 || style="background:#cff;"| 110 ||style="background:lightblue;"| 6E || [[n]]
| DC1 || style="font-size:large;" | ␑ || <tt>^Q</tt> || || style="text-align:left;" | [[Device Control 1]] (oft. [[XON]])
+
 
|-
 
|-
| 001 0010 || style="background:lightblue;" | 022 || style="background:#CFF;" | 18 || style="background:lightblue;" | 12
+
|110 1111 ||style="background:lightblue;"| 157 || style="background:#cff;"| 111 ||style="background:lightblue;"| 6F || [[o]]
| DC2 || style="font-size:large;" | ␒ || <tt>^R</tt> || || style="text-align:left;" | Device Control 2
+
 
|-
 
|-
| 001 0011 || style="background:lightblue;" | 023 || style="background:#CFF;" | 19 || style="background:lightblue;" | 13
+
|111 0000 ||style="background:lightblue;"| 160 || style="background:#cff;"| 112 ||style="background:lightblue;"| 70 || [[p]]
| DC3 || style="font-size:large;" | ␓ || <tt>^S</tt> || || style="text-align:left;" | Device Control 3 (oft. [[XOFF]])
+
 
|-
 
|-
| 001 0100 || style="background:lightblue;" | 024 || style="background:#CFF;" | 20 || style="background:lightblue;" | 14
+
|111 0001 ||style="background:lightblue;"| 161 || style="background:#cff;"| 113 ||style="background:lightblue;"| 71 || [[q]]
| DC4 || style="font-size:large;" | ␔ || <tt>^T</tt> || || style="text-align:left;" | Device Control 4
+
 
|-
 
|-
| 001 0101 || style="background:lightblue;" | 025 || style="background:#CFF;" | 21 || style="background:lightblue;" | 15
+
|111 0010 ||style="background:lightblue;"| 162 || style="background:#cff;"| 114 ||style="background:lightblue;"| 72 || [[r]]
| NAK || style="font-size:large;" | ␕ || <tt>^U</tt> || || style="text-align:left;" | [[Negative-acknowledge character|Negative Acknowledgement]]
+
 
|-
 
|-
| 001 0110 || style="background:lightblue;" | 026 || style="background:#CFF;" | 22 || style="background:lightblue;" | 16
+
|111 0011 ||style="background:lightblue;"| 163 || style="background:#cff;"| 115 ||style="background:lightblue;"| 73 || [[s]]
| SYN || style="font-size:large;" | ␖ || <tt>^V</tt> || || style="text-align:left;" | [[Synchronous idle]]
+
 
|-
 
|-
| 001 0111 || style="background:lightblue;" | 027 || style="background:#CFF;" | 23 || style="background:lightblue;" | 17
+
|111 0100 ||style="background:lightblue;"| 164 || style="background:#cff;"| 116 ||style="background:lightblue;"| 74 || [[t]]
| ETB || style="font-size:large;" | ␗ || <tt>^W</tt> || || style="text-align:left;" | [[End Transmission Block character|End of Transmission Block]]
+
 
|-
 
|-
| 001 1000 || style="background:lightblue;" | 030 || style="background:#CFF;" | 24 || style="background:lightblue;" | 18
+
|111 0101 ||style="background:lightblue;"| 165 || style="background:#cff;"| 117 ||style="background:lightblue;"| 75 || [[u]]
| CAN || style="font-size:large;" | ␘ || <tt>^X</tt> || || style="text-align:left;" | [[Cancel character|Cancel]]
+
 
|-
 
|-
| 001 1001 || style="background:lightblue;" | 031 || style="background:#CFF;" | 25 || style="background:lightblue;" | 19
+
|111 0110 ||style="background:lightblue;"| 166 || style="background:#cff;"| 118 ||style="background:lightblue;"| 76 || [[v]]
| EM || style="font-size:large;" | ␙ || <tt>^Y</tt> || || style="text-align:left;" | [[End of Medium]]
+
 
|-
 
|-
| 001 1010 || style="background:lightblue;" | 032 || style="background:#CFF;" | 26 || style="background:lightblue;" | 1A
+
|111 0111 ||style="background:lightblue;"| 167 || style="background:#cff;"| 119 ||style="background:lightblue;"| 77 || [[w]]
| SUB || style="font-size:large;" | ␚ || <tt>^Z</tt> || || style="text-align:left;" | [[Substitute character|Substitute]]
+
 
|-
 
|-
| 001 1011 || style="background:lightblue;" | 033 || style="background:#CFF;" | 27 || style="background:lightblue;" | 1B
+
|111 1000 ||style="background:lightblue;"| 170 || style="background:#cff;"| 120 ||style="background:lightblue;"| 78 || [[x]]
| ESC || style="font-size:large;" | ␛ || <tt>^<nowiki>[</nowiki></tt> || <tt>\e</tt><ref group="lower-alpha">The '<tt>\e</tt>' escape sequence is not part of ISO C and many other language specifications. However, it is understood by several compilers.</ref> || style="text-align:left;" | [[Escape character|Escape]]<ref group="lower-alpha">The Escape character can also be entered by pressing the {{keypress|Esc}} key on some systems.</ref>
+
 
|-
 
|-
| 001 1100 || style="background:lightblue;" | 034 || style="background:#CFF;" | 28 || style="background:lightblue;" | 1C
+
|111 1001 ||style="background:lightblue;"| 171 || style="background:#cff;"| 121 ||style="background:lightblue;"| 79 || [[y]]
| FS || style="font-size:large;" | ␜ || <tt>^\</tt> || || style="text-align:left;" | [[File separator|File Separator]]
+
 
|-
 
|-
| 001 1101 || style="background:lightblue;" | 035 || style="background:#CFF;" | 29 || style="background:lightblue;" | 1D
+
|111 1010 ||style="background:lightblue;"| 172 || style="background:#cff;"| 122 ||style="background:lightblue;"| 7A || [[z]]
| GS || style="font-size:large;" | ␝ || <tt>^<nowiki>]</nowiki></tt> || || style="text-align:left;" | [[Group separator|Group Separator]]
+
 
|-
 
|-
| 001 1110 || style="background:lightblue;" | 036 || style="background:#CFF;" | 30 || style="background:lightblue;" | 1E
+
|111 1011 ||style="background:lightblue;"| 173 || style="background:#cff;"| 123 ||style="background:lightblue;"| 7B || [[Bracket#Curly brackets|{]]
| RS || style="font-size:large;" | ␞ || <tt>^^</tt><ref group="lower-alpha">^^ means {{keypress|Ctrl|^}} (pressing the "Ctrl" and caret keys).</ref> || || style="text-align:left;" | [[Record separator|Record Separator]]
+
 
|-
 
|-
| 001 1111 || style="background:lightblue;" | 037 || style="background:#CFF;" | 31 || style="background:lightblue;" | 1F
+
|111 1100 ||style="background:lightblue;"| 174 || style="background:#cff;"| 124 ||style="background:lightblue;"| 7C || [[Vertical bar|&#124;]]
| US || style="font-size:large;" | ␟ || <tt>^_</tt> || || style="text-align:left;" | [[Unit separator|Unit Separator]]
+
 
|-
 
|-
| colspan="9" |
+
|111 1101 ||style="background:lightblue;"| 175 || style="background:#cff;"| 125 ||style="background:lightblue;"| 7D || [[Bracket#Curly brackets|}]]
 
|-
 
|-
| 111 1111 || style="background:lightblue;" | 177 || style="background:#CFF;" | 127 || style="background:lightblue;" | 7F
+
|111 1110 ||style="background:lightblue;"| 176 || style="background:#cff;"| 126 ||style="background:lightblue;"| 7E || [[Tilde|~]]
| DEL || style="font-size:large;" | ␡ || <tt>^?</tt> || || style="text-align:left;" | [[Delete character|Delete]]<ref group="lower-alpha">The Delete character can sometimes be entered by pressing the {{keypress|Backspace}} key on some systems.</ref><ref group="lower-alpha" name="bsp del mismatch">The ambiguity of Backspace is due to early terminals designed assuming the main use of the keyboard would be to manually punch paper tape while not connected to a computer. To delete the previous character, one had to back up the paper tape punch, which for mechanical and simplicity reasons was a button on the punch itself and not the keyboard, then type the rubout character. They therefore placed a key producing rubout at the location used on typewriters for backspace. When systems used these terminals and provided command-line editing, they had to use the "rubout" code to perform a backspace, and often did not interpret the backspace character (they might echo "<tt>^H</tt>" for backspace). Other terminals not designed for paper tape made the key at this location produce Backspace, and systems designed for these used that character to back up. Since the delete code often produced a backspace effect, this also forced terminal manufacturers to make any {{keypress|Delete}} key produce something other than the Delete character.</ref>
+
|}
 
|}
 
|}

Revision as of 08:46, 9 July 2013

ASCII printable characters

Codes 20hex to 7Ehex, known as the printable characters, represent letters, digits, punctuation marks, and a few miscellaneous symbols. There are 95 printable characters in total.

Code 20hex, the space character, denotes the space between words, as produced by the space-bar of a keyboard. Since the space character is considered an invisible graphic (rather than a control character)<ref name="FOOTNOTEMackenzie1980223">Mackenzie 1980, p. 223.</ref><ref name="RFC20_1968" /> and thus would not normally be visible, it is represented here by Unicode character U+2420 "␠"; Unicode characters U+2422 "␢" and U+2423 "␣" are also available for use when a visible representation of a space is necessary.

Code 7Fhex corresponds to the non-printable "Delete" (DEL) control character and is therefore omitted from this chart; it is covered in the previous section's chart.

Earlier versions of ASCII used the up-arrow instead of the caret (5Ehex) and the left-arrow instead of the underscore (5Fhex).<ref>ASA X3.4-1963.</ref>

Binary Oct Dec Hex Glyph
010 0000 040 32 20
010 0001 041 33 21 !
010 0010 042 34 22 "
010 0011 043 35 23 #
010 0100 044 36 24 $
010 0101 045 37 25 %
010 0110 046 38 26 &
010 0111 047 39 27 '
010 1000 050 40 28 (
010 1001 051 41 29 )
010 1010 052 42 2A *
010 1011 053 43 2B +
010 1100 054 44 2C ,
010 1101 055 45 2D -
010 1110 056 46 2E .
010 1111 057 47 2F /
011 0000 060 48 30 0
011 0001 061 49 31 1
011 0010 062 50 32 2
011 0011 063 51 33 3
011 0100 064 52 34 4
011 0101 065 53 35 5
011 0110 066 54 36 6
011 0111 067 55 37 7
011 1000 070 56 38 8
011 1001 071 57 39 9
011 1010 072 58 3A :
011 1011 073 59 3B ;
011 1100 074 60 3C <
011 1101 075 61 3D =
011 1110 076 62 3E >
011 1111 077 63 3F ?
Binary Oct Dec Hex Glyph
100 0000 100 64 40 @
100 0001 101 65 41 A
100 0010 102 66 42 B
100 0011 103 67 43 C
100 0100 104 68 44 D
100 0101 105 69 45 E
100 0110 106 70 46 F
100 0111 107 71 47 G
100 1000 110 72 48 H
100 1001 111 73 49 I
100 1010 112 74 4A J
100 1011 113 75 4B K
100 1100 114 76 4C L
100 1101 115 77 4D M
100 1110 116 78 4E N
100 1111 117 79 4F O
101 0000 120 80 50 P
101 0001 121 81 51 Q
101 0010 122 82 52 R
101 0011 123 83 53 S
101 0100 124 84 54 T
101 0101 125 85 55 U
101 0110 126 86 56 V
101 0111 127 87 57 W
101 1000 130 88 58 X
101 1001 131 89 59 Y
101 1010 132 90 5A Z
101 1011 133 91 5B [
101 1100 134 92 5C \
101 1101 135 93 5D ]
101 1110 136 94 5E ^
101 1111 137 95 5F _
Binary Oct Dec Hex Glyph
110 0000 140 96 60 `
110 0001 141 97 61 a
110 0010 142 98 62 b
110 0011 143 99 63 c
110 0100 144 100 64 d
110 0101 145 101 65 e
110 0110 146 102 66 f
110 0111 147 103 67 g
110 1000 150 104 68 h
110 1001 151 105 69 i
110 1010 152 106 6A j
110 1011 153 107 6B k
110 1100 154 108 6C l
110 1101 155 109 6D m
110 1110 156 110 6E n
110 1111 157 111 6F o
111 0000 160 112 70 p
111 0001 161 113 71 q
111 0010 162 114 72 r
111 0011 163 115 73 s
111 0100 164 116 74 t
111 0101 165 117 75 u
111 0110 166 118 76 v
111 0111 167 119 77 w
111 1000 170 120 78 x
111 1001 171 121 79 y
111 1010 172 122 7A z
111 1011 173 123 7B {
111 1100 174 124 7C |
111 1101 175 125 7D }
111 1110 176 126 7E ~
Personal tools