Character Storage
No description yet. This curated deck is ready for daily study.
Card preview (5)
What is a character set?
• A character set is a table that matches together a character and a binary value.
Why are character sets necessary?
• They allow computers to exchange data and humans to input characters.
ASCII:
• A common character set which doesn’t take up too much space. • ASCII uses 1 byte (8 bits) which gives 256 possible characters. • Can’t be used for all punctuation symbols or other languages
Unicode:
• Popular character set because it uses 2 bytes (16 bits) that allow for 65,536 possible characters. • Allows many different languages to be represented, as well as thousands of symbols and emojis. • It requires more memory to store each character than ASCII as it uses an extra byte.
File Size Calculation:
Bits per character * Number of characters