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

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

尚
Original
2020-03-08 15:34:2431545browse

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!

Statement:
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