Unicode in a simple word | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Unicode in a simple word

what is Unicode? and what is the main differences between ASCII and UTF-8 in a simple word?

20th Nov 2016, 5:43 PM
Amin Ghasemi
Amin Ghasemi - avatar
1 Answer
+ 5
ASCII defines 128 characters, which map to the numbers 0–127. Unicode defines (less than) 2^21 characters, which, similarly, map to numbers 0–2^21 (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.
20th Nov 2016, 5:54 PM
Shima Homayouni
Shima Homayouni - avatar