In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the storage space occupied by the ascii code for storing a character, which has a certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
The ascii code that stores one character takes up one byte. ASCII code is a 7-bit code, but it must occupy a whole byte, that is, 8 bits, the highest bit is 0, and the remaining 7 bits represent ASCII codes.
The ASCII code of one character takes up one byte of storage space.
ASCII code is a 7-bit code, but it must occupy 1 byte when it is stored, that is, 8 bits, the highest bit is 0, and the remaining 7 bits represent ASCII codes.
ASCII codes use a specified combination of 7-bit or 8-bit binary numbers to represent 128 or 256 possible characters. Standard ASCII codes, also known as base ASCII codes, use 7-digit binary numbers (the remaining 1-bit binary is 0) to represent all uppercase and lowercase letters, the numbers 0 to 9, punctuation, and special control characters used in American English.
Among them, 31,127 (33 in total) are control characters or communication special characters (the rest are displayable characters), such as control characters: LF (line feed), CR (carriage return), FF (page feed), DEL (delete), BS (backspace), BEL (ring ring), etc.; communication special characters: SOH (header), EOT (tail), ACK (confirmation), etc. ASCII values of 8, 9, 10, and 13 are converted to backspace, tabulation, line feed, and carriage return characters, respectively. They do not have a specific graphical display, but they have different effects on text display depending on the application.
32 '126 (95 total) are characters (32 are spaces), of which 48' 57 is 0 to 9 ten Arabic numerals.
65'90 is 26 capital letters, 97 '122 is 26 lowercase letters, and the rest are punctuation marks, arithmetic symbols and so on.
Also note that in the standard ASCII, the highest bit (b7) is used as the parity bit. The so-called parity is a method used to check whether there is an error in the process of code transmission, which is generally divided into parity and parity. Odd check stipulates that the number of 1 in a byte of correct code must be odd, if it is not odd, add 1 in the highest bit b7; even check stipulates that the number of 1 in a byte of correct code must be even, if not even, then add 1 in the highest bit b7.
The last 128 are called extended ASCII codes. Many x86-based systems support the use of extended (or "high") ASCII. The extended ASCII code allows the 8th bit of each character to be used to determine the additional 128special symbol characters, loanword letters, and graphic symbols.
Thank you for reading this article carefully. I hope the editor can share the storage space occupied by the ascii code of one character is helpful to everyone. At the same time, I also hope that you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are 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.