LinkedIn Interview Question

what is the difference between utf8 and ASCII characters. What are boolean values.

Interview Answer

Anonymous

Feb 20, 2021

UTF-8 uses 1 byte to represent characters in the ASCII set, two bytes for characters in several more alphabetic blocks, and three bytes for the rest of the BMP. Supplementary characters use 4 bytes. UTF-16 uses 2 bytes for any character in the BMP, and 4 bytes for supplementary characters