Template:Char-ref

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(genesis, port unchanged from Wikipedia)
 
(try this)
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
<noinclude>{{doc-page-head}}
  
{| class="wikitable" style="text-align: center"
+
This template when viewed directly is the same ascii table as on {{wp|ASCII#3_ASCII_printable_characters|Wikipedia ASCII}} (Table:3 ASCII printable characters).
 +
 
 +
==ASCII printable characters==
 +
Codes 20<sub>{{wp|hexadecimal|hex}}</sub> to 7E<sub>{{wp|hexadecimal|hex}}</sub>, known as the printable characters, represent letters, digits, {{wp|punctuation marks}}, and a few miscellaneous symbols. There are 95 printable characters in total.
 +
 
 +
Code 20<sub>{{wp|hexadecimal|hex}}</sub>, the {{wp|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">{{wp|#CITEREFMackenzie1980|Mackenzie 1980}}, p.&nbsp;223.</ref><ref name="RFC20_1968" /> and thus would not normally be visible, it is represented here by {{wp|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>{{wp|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 {{wp|caret}} (5E<sub>{{wp|hexadecimal|hex}}</sub>) and the left-arrow instead of the {{wp|underscore}} (5F<sub>{{wp|hexadecimal|hex}}</sub>).<ref>[http://www.wps.com/projects/codes/X3.4-1963/index.html ASA X3.4-1963].</ref>
 +
 
 +
    'a' through 'z'
 +
    '0' through '9'
 +
    hyphen ('-')
 +
    ampersand ('&')
 +
    comma (',')
 +
    plus ('+')
 +
    apostrophe (' ' ')
 +
    period ('.')
 +
    underscore ('_')
 +
    dollar ('$')
 +
    space (' ')
 +
    open parenthesis ('(')
 +
    closed parenthesis (')')
 +
    tilde ('~')
 +
 
 +
Filenames must not end with a space (' ').
 +
 
 +
{| style="background:none; text-align:center;"
 +
|- style="vertical-align:top;"
 +
|</noinclude>
 +
{| class="wikitable" style="text-align: center; float:right; align:right;"
 
|-
 
|-
! 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
+
!Binary !! Oct !! Dec !! Hex !! Glyph
 
|-
 
|-
| 000 0000 || style="background:lightblue;" | 000 || style="background:#CFF;" | 0 || style="background:lightblue;" | 00
+
|010 0000 ||style="background:lightblue;"| 040 || style="background:#cff;"| 32 ||style="background:lightblue;"| 20 || {{wpbl|space (punctuation)|␠}} || &nbsp;yes
| 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
+
|010 0001 ||style="background:lightblue;"| 041 || style="background:#cff;"| 33 ||style="background:lightblue;"| 21 || {{wpbl|Exclamation mark|!}}
| SOH || style="font-size:large;" | || <tt>^A</tt> || || style="text-align:left;" | [[Start-of-Header|Start of Header]]
+
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|010 0010 ||style="background:lightblue;"| 042 || style="background:#cff;"| 34 ||style="background:lightblue;"| 22 || {{wpbl|Quotation mark|"}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|010 0011 ||style="background:lightblue;"| 043 || style="background:#cff;"| 35 ||style="background:lightblue;"| 23 || {{wpbl|Number sign|#}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|010 0100 ||style="background:lightblue;"| 044 || style="background:#cff;"| 36 ||style="background:lightblue;"| 24 || {{wpbl|Dollar sign|$}} || &nbsp;yes
 +
|-
 +
|010 0101 ||style="background:lightblue;"| 045 || style="background:#cff;"| 37 ||style="background:lightblue;"| 25 || {{wpbl|Percent sign|%}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|010 0110 ||style="background:lightblue;"| 046 || style="background:#cff;"| 38 ||style="background:lightblue;"| 26 || {{wpbl|Ampersand|&}} || &nbsp;yes
 +
|-
 +
|010 0111 ||style="background:lightblue;"| 047 || style="background:#cff;"| 39 ||style="background:lightblue;"| 27 || {{wpbl|apostrophe|'}} || &nbsp;yes
 +
|-
 +
|010 1000 ||style="background:lightblue;"| 050 || style="background:#cff;"| 40 ||style="background:lightblue;"| 28 || {{wpbl|Parentheses|(}} || &nbsp;yes
 +
|-
 +
|010 1001 ||style="background:lightblue;"| 051 || style="background:#cff;"| 41 ||style="background:lightblue;"| 29 || {{wpbl|Parentheses|)}} || &nbsp;yes
 +
|-
 +
|010 1010 ||style="background:lightblue;"| 052 || style="background:#cff;"| 42 ||style="background:lightblue;"| 2A || {{wpbl|Asterisk|*}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|010 1011 ||style="background:lightblue;"| 053 || style="background:#cff;"| 43 ||style="background:lightblue;"| 2B || {{wpbl|Plus sign|+}} || &nbsp;yes
 +
|-
 +
|010 1100 ||style="background:lightblue;"| 054 || style="background:#cff;"| 44 ||style="background:lightblue;"| 2C || {{wpbl|Comma|,}}
 +
| &nbsp;yes
 +
|-
 +
|010 1101 ||style="background:lightblue;"| 055 || style="background:#cff;"| 45 ||style="background:lightblue;"| 2D || {{wpbl|Hyphen-minus|-}} || &nbsp;yes
 +
|-
 +
|010 1110 ||style="background:lightblue;"| 056 || style="background:#cff;"| 46 ||style="background:lightblue;"| 2E || {{wpbl|Full stop|.}} || &nbsp;yes
 +
|-
 +
|010 1111 ||style="background:lightblue;"| 057 || style="background:#cff;"| 47 ||style="background:lightblue;"| 2F || {{wpbl|Slash (punctuation)|/}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|011 0000 ||style="background:lightblue;"| 060 || style="background:#cff;"| 48 ||style="background:lightblue;"| 30 || {{wpbl|0 (number)|0}} || &nbsp;yes
 +
|-
 +
|011 0001 ||style="background:lightblue;"| 061 || style="background:#cff;"| 49 ||style="background:lightblue;"| 31 || {{wpbl|1 (number)|1}} || &nbsp;yes
 +
|-
 +
|011 0010 ||style="background:lightblue;"| 062 || style="background:#cff;"| 50 ||style="background:lightblue;"| 32 || {{wpbl|2 (number)|2}} || &nbsp;yes
 +
|-
 +
|011 0011 ||style="background:lightblue;"| 063 || style="background:#cff;"| 51 ||style="background:lightblue;"| 33 || {{wpbl|3 (number)|3}} || &nbsp;yes
 +
|-
 +
|011 0100 ||style="background:lightblue;"| 064 || style="background:#cff;"| 52 ||style="background:lightblue;"| 34 || {{wpbl|4 (number)|4}} || &nbsp;yes
 +
|-
 +
|011 0101 ||style="background:lightblue;"| 065 || style="background:#cff;"| 53 ||style="background:lightblue;"| 35 || {{wpbl|5 (number)|5}} || &nbsp;yes
 +
|-
 +
|011 0110 ||style="background:lightblue;"| 066 || style="background:#cff;"| 54 ||style="background:lightblue;"| 36 || {{wpbl|6 (number)|6}} || &nbsp;yes
 +
|-
 +
|011 0111 ||style="background:lightblue;"| 067 || style="background:#cff;"| 55 ||style="background:lightblue;"| 37 || {{wpbl|7 (number)|7}} || &nbsp;yes
 +
|-
 +
|011 1000 ||style="background:lightblue;"| 070 || style="background:#cff;"| 56 ||style="background:lightblue;"| 38 || {{wpbl|8 (number)|8}} || &nbsp;yes
 +
|-
 +
|011 1001 ||style="background:lightblue;"| 071 || style="background:#cff;"| 57 ||style="background:lightblue;"| 39 || {{wpbl|9 (number)|9}} || &nbsp;yes
 +
|-
 +
|011 1010 ||style="background:lightblue;"| 072 || style="background:#cff;"| 58 ||style="background:lightblue;"| 3A || {{wpbl|Colon (punctuation)|:}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|011 1011 ||style="background:lightblue;"| 073 || style="background:#cff;"| 59 ||style="background:lightblue;"| 3B || {{wpbl|Semicolon|;}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|011 1100 ||style="background:lightblue;"| 074 || style="background:#cff;"| 60 ||style="background:lightblue;"| 3C || {{wpbl|Less-than sign|<}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|011 1101 ||style="background:lightblue;"| 075 || style="background:#cff;"| 61 ||style="background:lightblue;"| 3D || {{wpbl|Equals sign|<nowiki>=</nowiki>}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|011 1110 ||style="background:lightblue;"| 076 || style="background:#cff;"| 62 ||style="background:lightblue;"| 3E || {{wpbl|Greater-than sign|>}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|011 1111 ||style="background:lightblue;"| 077 || style="background:#cff;"| 63 ||style="background:lightblue;"| 3F || {{wpbl|Question mark|?}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
<!--XXX
 +
|}<noinclude>
 +
|
 +
{| class="wikitable" style="text-align:center;"</noinclude>
 +
|- style="vertical-align:bottom;"
 +
</noinclude>
 +
XXX-->|-
 +
!Binary !! Oct !! Dec !! Hex !! Glyph
 +
|-
 +
|100 0000 ||style="background:lightblue;"| 100 || style="background:#cff;"| 64 ||style="background:lightblue;"| 40 || {{wpbl|@}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|100 0001 ||style="background:lightblue;"| 101 || style="background:#cff;"| 65 ||style="background:lightblue;"| 41 || {{wpbl|A}} || &nbsp;yes
 +
|-
 +
|100 0010 ||style="background:lightblue;"| 102 || style="background:#cff;"| 66 ||style="background:lightblue;"| 42 || {{wpbl|B}} || &nbsp;yes
 +
|-
 +
|100 0011 ||style="background:lightblue;"| 103 || style="background:#cff;"| 67 ||style="background:lightblue;"| 43 || {{wpbl|C}} || &nbsp;yes
 +
|-
 +
|100 0100 ||style="background:lightblue;"| 104 || style="background:#cff;"| 68 ||style="background:lightblue;"| 44 || {{wpbl|D}} || &nbsp;yes
 +
|-
 +
|100 0101 ||style="background:lightblue;"| 105 || style="background:#cff;"| 69 ||style="background:lightblue;"| 45 || {{wpbl|E}} || &nbsp;yes
 +
|-
 +
|100 0110 ||style="background:lightblue;"| 106 || style="background:#cff;"| 70 ||style="background:lightblue;"| 46 || {{wpbl|F}} || &nbsp;yes
 +
|-
 +
|100 0111 ||style="background:lightblue;"| 107 || style="background:#cff;"| 71 ||style="background:lightblue;"| 47 || {{wpbl|G}} || &nbsp;yes
 +
|-
 +
|100 1000 ||style="background:lightblue;"| 110 || style="background:#cff;"| 72 ||style="background:lightblue;"| 48 || {{wpbl|H}} || &nbsp;yes
 +
|-
 +
|100 1001 ||style="background:lightblue;"| 111 || style="background:#cff;"| 73 ||style="background:lightblue;"| 49 || {{wpbl|I}} || &nbsp;yes
 +
|-
 +
|100 1010 ||style="background:lightblue;"| 112 || style="background:#cff;"| 74 ||style="background:lightblue;"| 4A || {{wpbl|J}} || &nbsp;yes
 +
|-
 +
|100 1011 ||style="background:lightblue;"| 113 || style="background:#cff;"| 75 ||style="background:lightblue;"| 4B || {{wpbl|K}} || &nbsp;yes
 +
|-
 +
|100 1100 ||style="background:lightblue;"| 114 || style="background:#cff;"| 76 ||style="background:lightblue;"| 4C || {{wpbl|L}} || &nbsp;yes
 +
|-
 +
|100 1101 ||style="background:lightblue;"| 115 || style="background:#cff;"| 77 ||style="background:lightblue;"| 4D || {{wpbl|M}} || &nbsp;yes
 +
|-
 +
|100 1110 ||style="background:lightblue;"| 116 || style="background:#cff;"| 78 ||style="background:lightblue;"| 4E || {{wpbl|N}} || &nbsp;yes
 +
|-
 +
|100 1111 ||style="background:lightblue;"| 117 || style="background:#cff;"| 79 ||style="background:lightblue;"| 4F || {{wpbl|O}} || &nbsp;yes
 +
|-
 +
|101 0000 ||style="background:lightblue;"| 120 || style="background:#cff;"| 80 ||style="background:lightblue;"| 50 || {{wpbl|P}} || &nbsp;yes
 +
|-
 +
|101 0001 ||style="background:lightblue;"| 121 || style="background:#cff;"| 81 ||style="background:lightblue;"| 51 || {{wpbl|Q}} || &nbsp;yes
 +
|-
 +
|101 0010 ||style="background:lightblue;"| 122 || style="background:#cff;"| 82 ||style="background:lightblue;"| 52 || {{wpbl|R}} || &nbsp;yes
 +
|-
 +
|101 0011 ||style="background:lightblue;"| 123 || style="background:#cff;"| 83 ||style="background:lightblue;"| 53 || {{wpbl|S}} || &nbsp;yes
 +
|-
 +
|101 0100 ||style="background:lightblue;"| 124 || style="background:#cff;"| 84 ||style="background:lightblue;"| 54 || {{wpbl|T}} || &nbsp;yes
 +
|-
 +
|101 0101 ||style="background:lightblue;"| 125 || style="background:#cff;"| 85 ||style="background:lightblue;"| 55 || {{wpbl|U}} || &nbsp;yes
 +
|-
 +
|101 0110 ||style="background:lightblue;"| 126 || style="background:#cff;"| 86 ||style="background:lightblue;"| 56 || {{wpbl|V}} || &nbsp;yes
 +
|-
 +
|101 0111 ||style="background:lightblue;"| 127 || style="background:#cff;"| 87 ||style="background:lightblue;"| 57 || {{wpbl|W}} || &nbsp;yes
 +
|-
 +
|101 1000 ||style="background:lightblue;"| 130 || style="background:#cff;"| 88 ||style="background:lightblue;"| 58 || {{wpbl|X}} || &nbsp;yes
 +
|-
 +
|101 1001 ||style="background:lightblue;"| 131 || style="background:#cff;"| 89 ||style="background:lightblue;"| 59 || {{wpbl|Y}} || &nbsp;yes
 +
|-
 +
|101 1010 ||style="background:lightblue;"| 132 || style="background:#cff;"| 90 ||style="background:lightblue;"| 5A || {{wpbl|Z}} || &nbsp;yes
 +
|-
 +
|101 1011 ||style="background:lightblue;"| 133 || style="background:#cff;"| 91 ||style="background:lightblue;"| 5B || {{wpbl|Square brackets|<nowiki>[</nowiki>}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|101 1100 ||style="background:lightblue;"| 134 || style="background:#cff;"| 92 ||style="background:lightblue;"| 5C || {{wpbl|Backslash|\}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|101 1101 ||style="background:lightblue;"| 135 || style="background:#cff;"| 93 ||style="background:lightblue;"| 5D || {{wpbl|Square brackets|<nowiki>]</nowiki>}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|101 1110 ||style="background:lightblue;"| 136 || style="background:#cff;"| 94 ||style="background:lightblue;"| 5E || {{wpbl|Caret|^}}
 +
| style="background:#fcc;"| &nbsp;NO
 +
|-
 +
|101 1111 ||style="background:lightblue;"| 137 || style="background:#cff;"| 95 ||style="background:lightblue;"| 5F || {{wpbl|Underscore|_}} || &nbsp;yes
 +
<!--XXX<noinclude>
 +
|}
 +
|
 +
{| class="wikitable" style="text-align:center;"
 +
 
 +
|- style="vertical-align:bottom;"
 +
</noinclude>
 +
XXX--->
 
|-
 
|-
| 000 0010 || style="background:lightblue;" | 002 || style="background:#CFF;" | 2 || style="background:lightblue;" | 02
+
!Binary !! Oct !! Dec !! Hex !! Glyph
| STX || style="font-size:large;" | ␂ || <tt>^B</tt> || || style="text-align:left;" | [[Start Of Text|Start of Text]]
+
 
|-
 
|-
| 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 || {{wpbl|Grave accent|`}}
| ETX || style="font-size:large;" | ␃ || <tt>^C</tt> || || style="text-align:left;" | [[End-of-text character|End of Text]]
+
| style="background:#fcc;"| &nbsp;NO
 
|-
 
|-
| 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 || {{wpbl|a}} || &nbsp;yes
<!-- 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 || {{wpbl|b}} || &nbsp;yes
<!-- 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 || {{wpbl|c}} || &nbsp;yes
| 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 || {{wpbl|d}} || &nbsp;yes
| 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 || {{wpbl|e}} || &nbsp;yes
| 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 || {{wpbl|f}} || &nbsp;yes
| 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 || {{wpbl|g}} || &nbsp;yes
| 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 || {{wpbl|h}} || &nbsp;yes
| 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 || {{wpbl|i}} || &nbsp;yes
| 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 || {{wpbl|j}} || &nbsp;yes
| 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 || {{wpbl|k}} || &nbsp;yes
| 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 || {{wpbl|l}} || &nbsp;yes
| 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 || {{wpbl|m}} || &nbsp;yes
| 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 || {{wpbl|n}} || &nbsp;yes
| 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 || {{wpbl|o}} || &nbsp;yes
| 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 || {{wpbl|p}} || &nbsp;yes
| 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 || {{wpbl|q}} || &nbsp;yes
| 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 || {{wpbl|r}} || &nbsp;yes
| 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 || {{wpbl|s}} || &nbsp;yes
| 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 || {{wpbl|t}} || &nbsp;yes
| 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 || {{wpbl|u}} || &nbsp;yes
| 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 || {{wpbl|v}} || &nbsp;yes
| 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 || {{wpbl|w}} || &nbsp;yes
| 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 || {{wpbl|x}} || &nbsp;yes
| 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 || {{wpbl|y}} || &nbsp;yes
| 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 || {{wpbl|z}} || &nbsp;yes
| 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 || {{wpbl|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]]
+
| style="background:#fcc;"| &nbsp;NO
 
|-
 
|-
| 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 || {{wpbl|Vertical bar|&#124;}}
| US || style="font-size:large;" | ␟ || <tt>^_</tt> || || style="text-align:left;" | [[Unit separator|Unit Separator]]
+
| style="background:#fcc;"| &nbsp;NO
 
|-
 
|-
| colspan="9" |
+
|111 1101 ||style="background:lightblue;"| 175 || style="background:#cff;"| 125 ||style="background:lightblue;"| 7D || {{wpbl|Bracket#Curly brackets|} }}
 +
| style="background:#fcc;"| &nbsp;NO
 
|-
 
|-
| 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 || {{wpbl|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>
+
 
|}
 
|}
 +
<noinclude>|}{{FAB-todo}}</noinclude>

Latest revision as of 16:56, 9 July 2013

This template when viewed directly is the same ascii table as on Wikipedia ASCII (Table:3 ASCII printable characters).

[edit] 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>

    'a' through 'z'
   '0' through '9'
   hyphen ('-')
   ampersand ('&')
   comma (',')
   plus ('+')
   apostrophe (' ' ')
   period ('.')
   underscore ('_')
   dollar ('$')
   space (' ')
   open parenthesis ('(')
   closed parenthesis (')')
   tilde ('~') 

Filenames must not end with a space (' ').

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