0 1 2 3 4 5 6 7 8 9 0 ␀ ␁ ␂ ␃ ␄ ␅ ␆ Bel ␈ Tab 1 LF ␋ ␌ CR ␎ ␏ ␐ ␑ ␒ ␓ 2 ␔ ␕ ␖ ␗ ␘ ␙ ␚ ␛ ␜ ␝ 3 ␞ ␟ ! " # $ % & ' 4 ( ) * + , - . / 0 1 5 2 3 4 5 6 7 8 9 : ; 6 < = > ? @ A B C D E 7 F G H I J K L M N O 8 P Q R S T U V W X Y 9 Z [ \ ] ^ _ ` a b c 10 d e f g h i j k l m 11 n o p q r s t u v w 12 x y z { | } ~ ␡
The code used to generate this table
ASCII has 95 printable characters, 94 excluding the space.
The first printable character is the space at 32/0x20,
the next is the exclamation mark !
at 33/0x21,
and the last printable character is the tilde ~
at 126/0x7E.
#!/usr/bin/perl -CS # Here's an old, base 10 only version of the table-generation code. # Use perl -CS for UTF-8 output. print " "; # The header row. for (my $i = 0; $i < 10; $i++) { printf(" %d ", $i); } print "\n"; for (my $row = 0; $row < 13; $row++) { printf("%2d ", $row); for (my $column = 0; $column < 10; $column++) { $code = ($row * 10) + $column; if ($code >= 32) { printf(" %c ", $code); } else { # Use Unicode's "Control Pictures" block, U+2400 to U+243F $code += 0x2400; printf(" %c ", $code)); } } print "\n"; }