First, what is the relationship between the two? What is the relationship between encoding and implementation? I don't understand these concepts. First, what is the relationship between these two concepts? What is the relationship between encoding and implementation? I have not understood these concepts yet =
Reply content:
First, what is the relationship between the two? What is the relationship between encoding and implementation? I have not understood these concepts yet =
If someone asks this question, I can only paste the link.
Https://segmentfault.com/q/1010000004240543/a-1020000004241029
Http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html
Thank you, Ruan Yifeng's blog http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html.
To sum up, the difference is that Unicode is just a symbolic set, which only specifies the binary code of the symbol, but does not specify how the binary code should be stored. UTF-8 is the storage method name of character sets. One is a symbolic set and the other is a storage method. this is the difference.
ANSI and unicode are two different character standard systems.
ISO8859-1 and GBK are derived from ANSI, this type of encoding is for a certain text and the establishment of the standard, generally only compatible with ASCII.
UTF-8 and UTF-16 are unicode-standard encodings designed to contain all the language texts in the world to display text without garbled characters on computers in different language environments, this type of encoding occupies a relatively large space because it contains many characters.
In short, we often come into contact with the UTF-8, the essence is the same, is a kind of unicode packaging, so the conversion between encoding, need to first convert to unicode and then convert.