terminal-based-comp-sci-quiz
terminal-based-comp-sci-quiz copied to clipboard
Unicode/ASCII Intuition Prompt needs clarification
"prompt": "What is the difference between Unicode And ASCII?",
"answer": """ASCII defines 128 characters(Not Numbers), which map to the numbers 0–127. Unicode defines (less than) 221 characters, which, similarly, map to numbers 0–221 (though not all numbers are currently assigned, and some are reserved). Unicode is a superset of ASCII, and the numbers 0–128 have the same meaning in ASCII as they have in Unicode. For example, the number 65 means "Latin capital 'A'". Because Unicode characters don't generally fit into one 8-bit byte, there are numerous ways of storing Unicode characters in byte sequences, such as UTF-32 and UTF-8. """,
there are about 135,000 unicode codepoints and a codespace of 1,114,112 potential codepoints.