📄American Standard Code for Information Interchange (ASCII)
Also known as ASCII, ASCII Code, US-ASCII
An early code that numbers 128 English letters, digits and symbols. Capital A is 65.
Think of it like
Think of it like a secret code where A is 65, B is 66, and so on.
Example
Jack's old label printer only knows ASCII. His name prints fine, but the é in café comes out as a strange mark.
Why it matters
ASCII is the base of almost every text format. UTF-8 stores these 128 characters in exactly the same way.
Definition
Example code
console
$ python3 -c "print(ord('A'), ord('a'), ord(' '))"
65 97 32Common mistake
Key takeaways
- 1128 codes. The numbers run from 0 to 127.
- 2English only. No accents and no other alphabets.
- 3Lives on in UTF-8. The same bytes for the first 128.