Home >Common Problem >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!