Jump to content

Programming Fundamentals/ASCII Character Set

From Wikibooks, open books for an open world

Brief explanation of ASCII character set with web links to more information and tables.

ASCII stands for American Standard Code for Information Interchange (pronounced "ask-key"). Computers can only understand numbers, so an ASCII code is the numerical representation of a character such as 'a' or '@' or an action of some sort. ASCII was developed a long time ago and now the non-printing characters are rarely used for their original purpose. The first 32 values (0 to 31) and the last value (127) are the non-printing characters.

Several software products can be used to create an ASCII text file.

  • Notepad within Windows OS and it uses by default the .txt extension.
  • Microsoft Word by saving the file as 'text only' and it uses by default the .txt extension.
  • Integrated Development Environment (IDE) compliers for most programming languages usually save source code as ASCII text files but they will use an extension that describes the content of the text file. Example: C++ usually uses .cpp as the extension.

The following web links provide more information and tables listing the ASCII Character Set: