Question: what is the difference between utf-8 and utf-16?
Answer: 1) UTF-8 uses one byte at the minimum in encoding the characters while UTF-16 uses minimum two bytes. ... In short, UTF-8 is variable length encoding and takes 1 to 4 bytes, depending upon code point. UTF-16 is also variable length character encoding but either takes 2 or 4 bytes. On the other hand UTF-32 is fixed 4 bytes.