Home > Common Problem > How many bytes are needed to store a national standard code?

How many bytes are needed to store a national standard code?

Release: 2020-03-09 08:44:45
Original
31641 people have browsed it

How many bytes are needed to store a national standard code?

It takes 2 bytes to store an international code. Since one byte can only represent 256 codes, obviously one byte cannot represent the international code of Chinese characters, so an international code The code must be represented by two bytes.

The international standard for Chinese characters is the "Chinese Character Coded Character Set for Information Exchange" formulated by our country in 1981. Its standard number is GB2312-1980, referred to as the International Code, which is the most widely used in our country. Chinese character encoding character set.

The above is the detailed content of How many bytes are needed to store a national standard code?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template