In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces that a space in the computer occupies several characters, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let's take a look at it with you.
A space occupies one character, and the characters include letters, numbers, arithmetic symbols, punctuation and other symbols, as well as some functional symbols; characters stored in the computer should specify the corresponding binary code to represent the characters.
1. Space occupies one character
two。 One Chinese character takes up two characters.
3. One letter takes up one character.
4. GB and GBK encodings are 1 character and 2 bytes.
5. UTF8 encoding is 1 character and takes 3 bytes.
6. Unicode encodings are 1 character and 4 bytes.
7. Different encoding intervals are used to represent different bytes.
Related introduction:
Characters include letters, numbers, arithmetic symbols, punctuation marks and other symbols, as well as some functional symbols. When the characters are stored in the computer, the corresponding binary code representing the characters should be specified. The selection of the code should be consistent with the specifications of the relevant peripheral equipment. These peripheral devices include the input and output of the keyboard console, the output of the printer and so on. When characters are input, the binary code is automatically converted to binary code and stored in the machine; when output, the binary code in the computer is automatically converted into characters, both of which are realized by peripheral equipment. A character is the smallest data access unit in a data structure. A character is usually represented by eight binary bits (one byte), but a few computer systems use a six-binary character representation. The size of the character set in a system is entirely determined by the system itself. Generally speaking, there are 128 characters available to the computer (excluding Chinese characters). After entering the computer, each character will be converted into 8-bit binary numbers. Different computer systems and different languages can use different ranges of characters.
In ASCII encoding, it takes 1 byte to store an alphabetic character. In GB 2312 coding or GBK coding, it takes 2 bytes to store a Chinese character. In UTF-8 coding, it takes 1 byte to store an English alphabetic character and 3 to 4 bytes to store a Chinese character. In UTF-16 coding, the storage of an English alphabetic character or a Chinese character requires 2 bytes (some Chinese characters in the Unicode extension need 4 bytes). In UTF-32 encoding, the storage of any character in the world requires 4 bytes.
Thank you for reading this article carefully. I hope the article "A space in the computer occupies a few characters" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.