In what form are Chinese characters output on the computer?
Chinese characters are output in the form of glyph codes in computers. The glyph codes are a type of dot matrix code. In order to output Chinese characters on a monitor or printer, the Chinese characters are designed into a dot matrix pattern according to graphic symbols. The corresponding lattice code was obtained.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
In what form are Chinese characters output on the computer?
Chinese characters are output in the form of glyph codes in the computer.
Glyph code, a type of dot matrix code. In order to output Chinese characters on a monitor or printer, the Chinese characters are designed into a dot matrix according to graphic symbols, and the corresponding dot matrix code (glyph code) is obtained.
The font used for display is called the display font. Displaying a Chinese character generally uses a 16×16 dot matrix or a 24×24 dot matrix or a 48×48 dot matrix. Knowing the size of the Chinese character lattice, the byte space required to store a Chinese character can be calculated.
Example: Using a 16×16 dot matrix to represent a Chinese character means using 16 lines for each Chinese character and 16 dots per line. One dot requires a 1-bit binary code, and 16 dots require a 16-bit binary code. The code (i.e. 2 bytes) has 16 lines in total, so 16 lines × 2 bytes/line = 32 bytes are needed, that is, 16 × 16 dot matrix represents a Chinese character, and the glyph code requires 32 bytes.
That is: number of bytes = number of dot matrix lines × number of dot arrays/8
The font used for printing is called the printing font, which contains more Chinese characters than the display font, and it does not work when working. The image display font library needs to be transferred into the memory.
The collection of all Chinese character glyph codes is called the Chinese character library. Chinese character libraries can be divided into soft character libraries and hard character libraries. The soft font is stored on the hard disk in the form of a file. This method is often used nowadays. The hard font solidifies the font in a separate memory chip, and then forms an interface card with other necessary devices, which is plugged into the computer. It is usually called Hanka.
It can be understood that the unified encoding method used to represent Chinese characters in the computer is called internal code, and the internal code is unique. The Chinese character encoding formed to facilitate the input of Chinese characters is an input code, which is an external code of Chinese characters. The input code is different due to different encoding methods and is diverse. The Chinese character code formed for displaying and printing Chinese characters is a glyph code. The computer finds the glyph code of the Chinese character in the font model library through the Chinese character internal code and realizes its conversion.
Recommended: "Programming Video"
The above is the detailed content of In what form are Chinese characters output on the computer?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The internal code of a Chinese character requires 2 bytes to store. In the popular Chinese character system in China, the internal code of a Chinese character occupies 2 bytes. Because the Chinese character processing system must ensure compatibility between Chinese and Western languages, ambiguity will occur when ASCII codes and Chinese character national standard codes exist in the system. ; To this end, the Chinese character internal code should be appropriately processed and transformed into the national standard code.

PHP is a widely used server-side scripting language commonly used for website development. During website development, we often encounter the need to transcode Chinese characters, especially when dealing with Chinese characters. Mastering the skills of PHP in processing Chinese character transcoding can effectively avoid problems such as garbled characters and improve the stability and user experience of the website. 1.utf8_encode and utf8_decode functions In PHP, you can use the utf8_encode and utf8_decode functions to encode and decode Chinese characters.

The principle of converting Chinese characters to UTF-8 encoding actually involves the concept of character encoding. In computers, text characters need to be represented and stored in the form of numbers, and different character encoding schemes specify the correspondence between different characters and numbers. UTF-8 is a commonly used character encoding method. It supports characters worldwide and uses a variable-length encoding method, which can effectively represent characters in various languages and is especially suitable for the Unicode character set. As a common server-side scripting language, PHP also provides

After we install the win11 system, we must first install the win11 Chinese input method to type Chinese characters. If after installing the Chinese input method, we still cannot type Chinese characters, then the related service may be disabled. Just restart it. The following is Get up and take a look. What to do if win11 cannot type Chinese characters: 1. First, we must make sure that we have downloaded and installed the Chinese input method or third-party input method software. 2. If you don’t know how to add an input method, you can check out the tutorials on this site. 3. If you still cannot type Chinese characters after adding the input method, you need to enable related services. 4. First, right-click the start menu and find "Computer Management" 5. Then enter "Task Scheduler" - "Task Scheduler"

Chinese characters are output in the computer in the form of glyph codes, which are a type of dot matrix code. In order to output Chinese characters on a monitor or printer, the Chinese characters are designed into a dot matrix according to graphic symbols, and the corresponding dot matrix is obtained. code.

PHP Regular Expression Guide: Methods of Matching Chinese Characters Regular expressions play a very important role in text processing. It can help us quickly and accurately match text content in specific patterns. For the processing of Chinese text, especially the special need of matching Chinese characters, regular expressions can also come in handy. This article will introduce how to use regular expressions to match Chinese characters in PHP and provide specific code examples. First, we need to clarify the scope of Chinese characters in Unicode encoding. The Unicode encoding range of Chinese characters is large

Tips to avoid PHP outputting garbled Chinese characters When programming PHP, you often encounter the situation of outputting Chinese content. However, if you accidentally handle it improperly, it is easy for Chinese characters to be garbled and affect the user experience. Therefore, mastering some skills can effectively prevent PHP from outputting garbled Chinese characters. Some specific code examples will be introduced below to help developers better handle Chinese character output. 1. Set the character encoding to UTF-8 to ensure that the encoding of the PHP file itself is UTF-8. You can add the following comment at the beginning of the code to specify

Chinese characters in computers are stored using internal codes. Chinese internal codes refer to codes composed of 0 and 1 symbols used in computer internal storage, processing, and transmission of Chinese characters. Internal codes are the most basic encoding of Chinese characters, no matter what Chinese characters they are. System and Chinese character input method, the input Chinese character external code must be converted into internal code inside the machine before it can be stored and processed in various ways.