ASCII

ASCII is the American Standard Code for Information Interchange.

It is a 7-bit code. Many 8-bit codes (such as ISO 8859-1, the Linux default character set) contain ASCII as their lower half. The international counterpart of ASCII is known as ISO 646.

The ASCII code has three parts:
  • The null character (0)

  • Control codes (from 1 to 31)

  • Visible characters (from 32 to 126)

  • The rubout (delete) character 127

The visible characters from 32 to 126

Decimal ASCII table
  | 30  40  50  60  70  80  90  100 110 120
--+----------------------------------------
0 |     (   2   <   F   P   Z   d   n   x
1 |     )   3   =   G   Q   [   e   o   y
2 | SPC *   4   >   H   R   \   f   p   z
3 | !   +   5   ?   I   S   ]   g   q   {
4 | "   ,   6   @   J   T   ^   h   r   |
5 | #   -   7   A   K   U   _   i   s   }
6 | $   .   8   B   L   V   `   j   t   ~
7 | %   /   9   C   M   W   a   k   u   DEL
8 | &   0   :   D   N   X   b   l   v
9 | '   1   ;   E   O   Y   c   m   w

Hexadecimal ASCII table
  | 2   3   4   5   6   7
--+------------------------
0 | SPC 0   @   P   `   p
1 | !   1   A   Q   a   q
2 | "   2   B   R   b   r
3 | #   3   C   S   c   s
4 | $   4   D   T   d   t
5 | %   5   E   U   e   u
6 | &   6   F   V   f   v
7 | '   7   G   W   g   w
8 | (   8   H   X   h   x
9 | )   9   I   Y   i   y
A | *   :   J   Z   j   z
B | +   ;   K   [   k   {
C | ,   <   L   \   l   |
D | -   =   M   ]   m   }
E | .   >   N   ^   n   ~
F | /   ?   O   _   o   DEL

The control characters from 0 to 31

Control characters
Decimal   Hexadecimal   Name                                 Gambas character
-----------------------------------------------------------------------------
0         00            NUL                                  '\0'
1         01            SOH    Start of Header
2         02            STX    Start of Text
3         03            ETX    End of Text
4         04            EOT    End of Transmission
5         05            ENQ    Enquiry
6         06            ACK    (positive) Acknowledgement
7         07            BEL    Audible Signal (Bell or Beep) '\a' (1)
8         08            BS     Backspace                     '\b'
9         09            HT     Horizontal Tab                '\t'
10        0A            LF     Line Feed                     '\n'
11        0B            VT     Vertical Tab                  '\v'
12        0C            FF     Form Feed                     '\f'
13        0D            CR     Carriage Return               '\r'
14        0E            SO     Shift Out
15        0F            SI     Shift In
16        10            DLE    Data Link Escape
17        11            DC1    Device Control 1
18        12            DC2    Device Control 2
19        13            DC3    Device Control 3
20        14            DC4    Device Control 4
21        15            NAK    negative Acknowledgement
22        16            SYN    Synchronise
23        17            ETB    End of Transmission Block
24        18            CAN    Cancel
25        19            EM     End Of Medium
26        1A            SUB    Substitute
27        1B            ESC    Escape
28        1C            FS     File Separator
29        1D            GS     Group Separator
30        1E            RS     Record Separator
31        1F            US     Unit Separator

(1) Not yet implemented

This documentation comes from the 'man' page of the Linux Programmer's Manual.