【Science】 What is the difference between Unicode and UTF-8? What is ASCII code? What the hell is GBK? An article tells you

Author: Spirit Tang Dynasty
link: https://www.zhihu.com/question/23374078/answer/69732605
Source: know almost
copyrighted by the author. For commercial reproduction, please contact the author for authorization, and for non-commercial reproduction, please indicate the source.

Through the expansion and transformation of Chinese in ASCII encoding, the Chinese people have produced GB2312 encoding, which can represent more than 6,000 commonly used Chinese characters. There are too many Chinese characters, including traditional characters and various characters, so the GBK encoding is generated, which includes the encoding in GB2312, while expanding a lot. China is a multi-ethnic country, and almost all ethnic groups have their own independent language systems. In order to express those characters, they continue to expand the GBK encoding to GB18030 encoding. Every country encodes its own language like China, and various codes appear. If you do n’t install the corresponding code, you ca n’t explain what the corresponding code wants to express. Finally, there is an organization called ISO that can't stand it anymore. Together they created a code UNICODE, this code is very large, large enough to accommodate any text and logo in the world. So as long as there is an encoding system such as UNICODE on the computer, no matter what kind of text is in the world, when you only need to save the file, the UNICODE encoding can be interpreted normally by other computers. UNICODE In the network transmission, two standards UTF-8 and UTF-16 appeared, transmitting 8 bits and 16 bits at a time. So some people will have questions. Since UTF-8 can save so many words and symbols, why are there so many people who use GBK and other encodings in China? Because UTF-8 and other codes are relatively large and take up a lot of computer space, if the majority of the users are Chinese, you can use GBK and other codes.

Published 42 original articles · praised 28 · visits 4961

Guess you like

Origin blog.csdn.net/KaelCui/article/details/105501930