Character Set - American Standard Code for Information Interchange ( ASCII )

Data System Architecture

About

ASCII is a character set originally based on the English alphabet, it encodes 128 specified characters into 7-bit binary integers (8 bits for the extended ASCII table)

ASCII means American Standard Code for Information Interchange. It was proposed by ANSI (American National Standards Institute) in 1963 and finalized in 1968.

It is the U.S. national variant of ISO/IEC 646 and is formally the U.S. standard ANSI X3.4.

It defines:

Until December 2007, ASCII was the most common character encoding on the World Wide Web, but since that time it has been surpassed by unicode character set (UTF-8,…), which includes ASCII as a subset.

On Windows, it's known as Windows-1252 (code page 1252).

Extended

The extended ASCII table is on 8byte and allows 256 characters.

Extended character List with the ALT code for the keyboard (ie Fn+Alt+code or alt+code)

Table

Because ASCII is a subset of unicode, printing the first 256 characters with unicode function will give you the Extended ASCII table.

Example with Javascript and the String.fromCodePoint function

function character(decimal, binary, hexadecimal, character) {
  this.decimal = decimal;
  this.binary = binary;
  this.hexadecimal = hexadecimal;
  this.character = character
}
let asciiCharacters = [];
for(i=0;i<=256;i++){
    asciiCharacters.push(
        new character(
            i, 
            i.toString(2), 
            i.toString(16).toUpperCase(), 
            String.fromCodePoint(i)
            )
    );
}
console.table(asciiCharacters);

The first 32 characters are non-printable characters

Regular Expression Character Class

If the regular engine supports it, you can use the following regular expression class 1) to represent all ASCII characters

[:ASCII:]

Documentation / Reference





Discover More
Base 36 (0-9 and A-Z)

This article shows the conversion from binary to base 36 characters
Data System Architecture
Character - Null Character (NUL)

The null character (also known as null terminator) , abbreviated NUL, is a control character with the value zero It's the first character of most of the character set such as ASCII and unicode You...
Data System Architecture
Character Set - UTF8

utf version 8 bytes. UTF-8 bytes are divided in “waterproof” categories as follows: Bytes 0x00 to 0x7F aresingle bytes, they each represent a single codepoint in the exact same format as in...
Card Puncher Data Processing
Character set

Character Set in PHP
How to send an email at the command line with SMTP? Email transaction explained

This page is a how-to that describes how you can transport an email to a SMTP server at the command line using the SMTP protocol for further delivery It will show you the inner mechanisms of SMTP. Below...
Windows Calculator
Number - (Hexadecimal|Hex) (Dump|Editor)

An hex dump is a raw binary information contained in a file translated into hexadecimal Pane (for a viewer) Column (for an output) Description Address pane Left The Address offset in hexadecimal...
Oracle Apex Items Type
Oracle Apex - (Form|Page) (Field|Item)

An item (also called a field) is a HTML form elements such as text fields, select lists, and check boxes. Every item has a session state value that can be referenced by a variable. Item names...
Card Puncher Data Processing
Oracle Database - User (Account/Client)

A user is an entity that can be authenticated. A user can be a person or a software entity, such as a Java client. Each user is given a unique identity within a security realm. For efficient security management,...
Scale Counter Graph
Prometheus - Label (Dimension)

A label in Prometheus is specified in a metric and allows dimensional data model Any given combination of labels for the same metric name identifies a particular dimensional instantiation of that metric...
Scale Counter Graph
Prometheus - Metrics

This page is metrics in Prometheus. where: the metric name is api_http_requests_total the labels are: method=“POST” handler=“/messages” A metric identifier is composed uniquely...



Share this page:
Follow us:
Task Runner