The difference between GB2312,GBK and UTF-8

Source: Internet
Author: User
GBK
The GBK contains all Chinese characters, and the text encoding of the GBK is double-byte, meaning that both Chinese and English characters are represented by double-byte, except that the highest bit is determined to be 1.
As for the UTF-8 encoding, which is used to solve the international character of a multibyte encoding, it uses 8 bits (that is, one byte) in English, the Chinese use 24 bits (three bytes) to encode. For forums with more English characters, you can save space with UTF-8 .

GBK contains all Chinese characters,
UTF-8 contains the characters that are needed for all countries in the world.
GBK is a standard that is compatible with GB2312 on the basis of national standard GB2312.
UTF-8 encoded text can be displayed on a variety of browsers that support UTF8 character sets in various countries.
For example, if it is a UTF8 code, it can display Chinese in the foreigner's English ie, without requiring them to download IE's Chinese language support package.
For a more English-speaking forum, use GBK to occupy 2 bytes per character, while using UTF-8 in English only takes one byte.

The difference between GB2312,GBK and UTF-8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.