What is the use of using UTF-8 over UTF-16?

Possible duplicate:
UTF8, UTF16 and UTF32

I always read things saying to write my source code in UTF-8 and stay away from other encodings, but it also seems that UTF-16 is an improved version of UTF-8. What is the difference between them and is there any advantage for each of them?

+5
source share
1 answer

This should help:)

http://www.differencebetween.net/technology/difference-between-utf-8-and-utf-16/

Summary:

  • UTF-8 and UTF-16 are used for character encoding
  • UTF-8 uses bytes at least for character encoding, while UTF-16 uses two
  • UTF-8 , UTF-16
  • UTF-8 ASCII, UTF-16 ASCII
  • UTF-8 , UTF-16
  • UTF-8 UTF-16
+5

All Articles