Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to store Chinese characters in computer

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to store Chinese characters in the computer, which is very detailed and has a certain reference value. Friends who are interested must finish reading it!

The internal code is used to store Chinese characters in the computer. The internal code of the Chinese character machine refers to the code composed of 0 and 1 symbols used by the computer to store, process and transmit Chinese characters. The internal code is the most basic coding of Chinese characters. No matter what the Chinese character system and Chinese character input method are, the external code of the input Chinese character must be converted into the internal code of the machine before it can be stored and processed.

The internal code is used to store Chinese characters in the computer.

Chinese character machine internal code, also known as "Chinese character ASCII code", referred to as "internal code", refers to the code composed of 0 and 1 symbols used in the internal storage, processing and transmission of Chinese characters. After the input code is accepted, it is converted into the internal code by the input code conversion module of the Chinese character operating system, which has nothing to do with the keyboard input method used. The internal code is the most basic coding of Chinese characters. No matter what the Chinese character system and Chinese character input method are, the external code of the input Chinese character must be converted into the internal code of the machine before it can be stored and processed.

Specific explanation

Because the Chinese character processing system needs to ensure the compatibility of Chinese and Western languages, ambiguity will occur when there are both ASCII code and Chinese character GB code in the system. For example, there are two bytes of 30H and 21H, which can represent not only the GB code of the Chinese character "ah", but also the western language "0" and "!" The ASCII code. For this reason, the internal code of the Chinese character machine should be properly processed and transformed.

The internal code of the GB code is a two-byte code, which adds "1" to the highest bit of each byte of the corresponding GB code, that is,

Chinese character machine internal code = Chinese character national standard code + 8080H

For example, the GB code of the above "ah" word is 3021H, and the internal code of the Chinese character machine is B0A1H.

The internal code of Chinese character machine is based on the national standard code of Chinese characters.

Internal code: in order to avoid ambiguity when ASCII code and GB code are used at the same time, most Chinese character systems use the high position 1 of each byte of GB code as the internal code of Chinese character machine. This not only solves the ambiguity between the internal code of the Chinese character machine and the internal code of the western language machine, but also makes the corresponding relationship between the internal code of the Chinese character machine and the GB code very simple.

The relationship among the internal code, GB code and location code of the Chinese character machine is as follows: the two bytes of the location code (decimal) are converted into hexadecimal and then added 2020H to get the corresponding GB code; the internal code is the highest bit of the two bytes of the Chinese character interchange code (GB code) plus 1 respectively, that is, the two bytes of the Chinese character interchange code (GB code) are added by 80H respectively to get the corresponding internal code. The two bytes of the area code (decimal) are converted to hexadecimal and then added A0H to get the corresponding internal code.

The above is all the contents of the article "how to store Chinese characters in the computer". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report