Possible Duplicate:
UTF8, UTF16, and UTF32
I am always reading things saying to write my source code in UTF-8 and stay way from other encodings, but it also seems like UTF-16 is an improved version of UTF-8. What is the difference between them, and is there any advantage to either one?
This should help :)
http://www.differencebetween.net/technology/difference-between-utf-8-and-utf-16/
Summary:
- UTF-8 and UTF-16 are both used for encoding characters
- UTF-8 uses a byte at the minimum in encoding the characters while UTF-16 uses two
- A UTF-8 encoded file tends to be smaller than a UTF-16 encoded file
- UTF-8 is compatible with ASCII while UTF-16 is incompatible with ASCII
- UTF-8 is byte oriented while UTF-16 is not
- UTF-8 is better in recovering from errors compared to UTF-16
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With