Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

ASCii-Table

ASCii Table Term

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

:computer: ASCii-Table:

Compiler 10 Seattle 10 1 Berlin 10 2 Tokyo 10 3 Rio 10 4 Sydney 11 Alexandria 12 Athens
Components None

ASCII, stands for American Standard Code for Information Interchange. It is a 7-bit character code where each individual bit represents a unique character. This page shows the extended ASCII table which is based on the Windows-1252 character set which is an 8 bit ASCII table with 256 characters and symbols. It includes all ASCII codes from standard ASCII, and it is a superset of ISO 8859-1 in terms of printable characters. In the range 128 to 159 (hex 80 to 9F), ISO/IEC 8859-1 has invisible control characters, while Windows-1252 has writable characters. Windows-1252 is probably the most-used 8-bit character encoding in the world.

:wrench: Functions:

  • Keyboard Hook
  • Search Char
  • Unicode Export

ASCII

ASCII control characters (character code 0-31) The first 32 characters in the ASCII-table are unprintable control codes and are used to control peripherals such as printers.

ASCII printable characters (character code 32-127) Codes 32-127 are common for all the different variations of the ASCII table, they are called printable characters, represent letters, digits, punctuation marks, and a few miscellaneous symbols. You will find almost every character on your keyboard. Character 127 represents the command DEL.

Our ASCII table is structured with rows for each character and columns for decimal, octal, hexadecimal, binary, symbol, HTML number, HTML entities, and description, making it the most comprehensive and user-friendly resource available.

Each row of our ASCII table displays a unique character or symbol, with corresponding information in the columns. The decimal column shows the numerical value of each character, ranging from 0 to 255. The octal and hexadecimal columns provide additional numeric representations of each character. The binary column shows the binary value of each character, represented by a 8-digit number between 00000000 and 11111111.

Our ASCII table also includes columns for symbol, HTML number, and HTML entities. This information is incredibly useful for web developers and designers, as it allows them to easily use ASCII characters and symbols in their HTML code.

The description column provides additional context and information about each character, making it a valuable resource for designers and typographers. With our ASCII table, you'll have all the information you need at your fingertips, in a user-friendly format that's easy to understand and use.

Overall, the ASCII table on ascii-code.com is the ultimate resource for anyone working with text-based communication and computing. Its comprehensive and well-structured format ensures compatibility and consistency across different systems and applications.

ANSI

The ANSI set of 217 characters, also known as Windows-1252, was the standard for the core fonts supplied with US versions of Microsoft Windows up to and including Windows 95 and Windows NT 4. During the lifetime of those two products, Microsoft added the euro currency symbol bringing the number of characters to 218, and introduced a new core set of Pan-European fonts containing the WGL4 (Windows Glyph List 4) character set, with 652 characters.

If you use an old, non-Unicode version of Windows that was designed for a non-Latin alphabet such as Arabic, Cyrillic, Greek, Hebrew or Thai to view a document that has been typed using the ANSI character set, then characters from these languages may replace some of those in the 128–255 range; this problem has mostly been resolved now that Unicode is widely used, because it provides a unique numeric identifier for each character. There were similar problems when transferring ANSI documents to DOS or Macintosh computers, because DOS and MacRoman arrange characters differently in the 128–255 range.

ANSI characters 32 to 127 correspond to those in the 7-bit ASCII character set, which forms the Basic Latin Unicode character range. Characters 160–255 correspond to those in the Latin-1 Supplement Unicode character range. Positions 128–159 in Latin-1 Supplement are reserved for controls, but most of them are used for printable characters in ANSI; the Unicode equivalents are noted in the table below. Entries in the “Entity” column are character entity references that can be used in HTML and should be interpreted correctly by Web browsers that support HTML 4.0.

The characters that appear in the first column of the following table are generated from Unicode numeric character references, and so they should appear correctly in any Web browser that supports Unicode and that has suitable fonts available, regardless of the operating system.

Character sets

:speech_balloon: Code example

Source code of the C++ program which prints the ASCII table from 0 to 127. The C++ program is successfully compiled and run on a Linux system. The program output is also shown below.

The program uses a while loop to go through every ASCII character from 0 to 127. ASCII character from 0 to 31 are control characters and are printed specially using an array of character strings, the characters from 32 to 126 are printed by using the character representation of the integer value and the character representation of 127 is printed using the character string “DEL”.

cpp
/*
 * C++ Program to Print ASCII table (0 - 127)
 */
 
#include<iostream>
#include<iomanip>
using namespace std;
 
char const* character[] = {"", "", "", "", "", "", "", "",
                            "\\a","\\b","\\t","\\n","\\v","\\f","\\r", "",
                            "", "", "", "", "", "", "", "",
                            "", "", "", "", "", "", "", ""};
 
int main()
{
    char c;
    int row;
    cout << " ASCII Table" << endl << "=============" << endl;
    for(int i = 0; i < 16; i++)
    {
        row = i;
        while (row <= 127) {
            if (row < 32)
                cout << setfill('0') << setw(2) << setbase(16)
                     << row << " = " << setw(3) << setfill(' ')
                     << character[i] << " | ";
            else if (row >= 32 && row < 127)
            {
                c = row;
                cout << setfill('0') << setw(2) << setbase(16)
                     << row << " = " << setw(3) << setfill(' ')
                     << c << " | ";
            }
            else
                cout << setfill('0') << setw(2) << setbase(16)
                     << row << " = " << setw(3) << setfill(' ')
                     << "DEL" << " | ";
            row = row + 16;
        }
        cout << endl;
    }
} 
cout << "!" << endl;
}