Storage size of a message in three Unicode encodings

A chat message contains 14 characters: 8 ASCII characters, 3 Cyrillic letters with code points between U+0410 and U+044F, 2 Chinese characters with code points between U+4E00 and U+9FFF, and 1 emoji with code point U+1F600. Ignoring any byte-order mark, calculate how many bytes the message occupies when encoded in UTF-8, in UTF-16 and in UTF-32. Give each answer as a whole number of bytes.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Text Encoding and Compression Techniques Questions: