Home > Common Problem > body text

What does double byte mean?

藏色散人
Release: 2021-12-06 16:21:57
Original
15544 people have browsed it

Double-byte characters occupy two bytes, that is, double-byte characters contain two bytes and a total of 16 bits, while Chinese characters occupy two bytes; single-byte characters only occupy one word , are English characters.

What does double byte mean?

#The operating environment of this article: Windows 7 system, Dell G3 computer.

What does double byte mean?

Single byte refers to only one word, which is an English character. Double words occupy two bytes, and Chinese characters occupy two bytes.

The English word for a single byte is byte; the bit is the smallest numerical unit, and its English word is bit.

A byte contains 8 bits. Usually the ASCII code that computer beginners come into contact with is a single-byte character. Since the computer is binary, 1 bit can only be expressed as 0 or 1. , those 8 bits (generally from right to left) can be represented by different values ​​from 0 to 127 (2 to the 8th power minus 1).

Double-byte characters contain two bytes for a total of 16 bits.

Generally, it is easy to understand that English letters are single-byte characters, while Chinese characters are double-byte characters. Because English letters, numbers, symbols, etc. can be represented by 128 different numerical values, but too many Chinese characters cannot be represented, so it needs to be expanded to double bytes.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What does double byte mean?. 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