Difference between revisions of "ASCII"

From Free Pascal wiki
Jump to navigationJump to search
Line 199: Line 199:
 
|   25
 
|   25
 
|    %  
 
|    %  
|   Percent sign    
+
|   [[Percent sign]]    
 
|-  
 
|-  
 
|     38
 
|     38
Line 629: Line 629:
 
|   7B
 
|   7B
 
|    {  
 
|    {  
|  
+
|   Left curly bracket
 
|-  
 
|-  
 
|    124  
 
|    124  
Line 639: Line 639:
 
|   7D
 
|   7D
 
|    }
 
|    }
|  
+
|   Right curly bracket  
 
|-  
 
|-  
 
|    126
 
|    126

Revision as of 16:15, 2 September 2008

ASCII (American Standard Code for Information Interchange) is 7-bit character encoding.

ASCII reserves the first 32 codes (numbers 0–31 decimal) for control characters and 95 printable ASCII characters, numbered 32 to 126.


  Dec     Hex     ASCII codes
    0   00   NUL   Null character
    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   Acknowledgment  
    7   07   BEL   Bell
    8   08   BS      Backspace  
    9   09   HT      Horizontal tab  
   10   0A   LF      Line feed  
   11   0B   VT      Vertical tab  
   12   0C   FF   Form feed
   13   0D   CR      Carriage return  
   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   Synchronous idle
   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
   32   20       Space
   33   21   !   Exclamation mark  
   34   22   "   Quotation mark  
   35   23   #   Number sign  
   36   24   $   Dollar sign  
   37   25   %   Percent sign  
   38   26   &   Ampersand  
   39   27   '
   40   28   (   Left parenthesis  
   41   29   )   Right parenthesis  
   42   2A   *   Asterisk  
   43   2B   +   Plus sign  
   44   2C   ,   Comma
   45   2D   -  
   46   2E   .  
   47   2F   /   Slash
   48   30   0
   49   31   1
   50   32   2  
   51   33   3
   52   34   4
   53   35   5
   54   36   6
   55   37   7
   56   38   8
   57   39   9  
   58   3A   :   Colon
   59   3B   ;   Semicolon
   60   3C   <   Less than
   61   3D   =   Equal
   62   3E   >   Greater than  
   63   3F   ?   Question mark  
   64   40   @  
   65   41   A  
   66   42   B  
   67   43   C  
   68   44   D  
   69   45   E  
   70   46   F  
   71   47   G  
   72   48   H  
   73   49   I  
   74   4A   J  
   75   4B   K  
   76   4C   L  
   77   4D   M
   78   4E   N
   79   4F   O
   80   50   P
   81   51   Q
   82   52   R
   83   53   S
   84   54   T
   85   55   U
   86   56   V
   87   57   W
   88   58   X  
   89   59   Y  
   90   5A   Z
   91   5B   [   Left square bracket
   92   5C   \   Backslash
   93   5D   ]   Right square bracket  
   94   5E   ^   Circumflex accent
   95   5F   _  
   96   60   `  
   97   61   a
   98   62   b
   99   63   c
  100   64   d
  101   65   e  
  102   66   f
  103   67   g
  104   68   h
  105   69   i
  106   6A   j
  107   6B   k
  108   6C   l
  109   6D   m  
  110   6E   n
  111   6F   o
  112   70   p
  113   71   q
  114   72   r  
  115   73   s
  116   74   t  
  117   75   u
  118   76   v
  119   77   w
  120   78   x
  121   79   y
  122   7A   z
  123   7B   {   Left curly bracket
  124   7C   |  
  125   7D   }   Right curly bracket  
  126   7E   ~  
  127   7F   Del   Delete