search
HomeCommon ProblemIn 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.

In what form are Chinese characters output on the computer?

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!

Statement
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
一个汉字的机内码需要几个字节储存一个汉字的机内码需要几个字节储存Dec 14, 2020 pm 05:45 PM

一个汉字的机内码需要2个字节储存。在国内流行的汉字系统中,一个汉字的机内码占2个字节,因为汉字处理系统要保证中西文的兼容,当系统中同时存在ASCII码和汉字国标码时,将会产生二义性;为此,汉字机内码应对国标码加以适当处理和变换。

深入了解PHP中汉字转UTF-8编码的原理深入了解PHP中汉字转UTF-8编码的原理Mar 28, 2024 pm 02:44 PM

汉字转UTF-8编码的原理实际上涉及到字符编码的概念。在计算机中,文字字符需要以数字的形式进行表示和存储,而不同的字符编码方案规定了不同字符到数字之间的对应关系。UTF-8是一种常用的字符编码方式,它支持全球范围内的字符,并且采用可变长度的编码方式,能够有效地表示各种语言的字符,特别适用于Unicode字符集。PHP作为一种常见的服务器端脚本语言,也提供了对

掌握 PHP 处理汉字转码的技巧掌握 PHP 处理汉字转码的技巧Mar 28, 2024 pm 03:47 PM

PHP是一种广泛使用的服务器端脚本语言,常用于网站开发。在网站开发过程中,经常会遇到对汉字进行转码的需求,特别是在处理中文字符时。掌握PHP处理汉字转码的技巧,能够有效避免乱码等问题,提高网站的稳定性和用户体验。1.utf8_encode和utf8_decode函数在PHP中,可以使用utf8_encode和utf8_decode函数进行汉字的编码和解码操

win11汉字输入问题解决方法win11汉字输入问题解决方法Jan 05, 2024 am 08:29 AM

我们在安装win11系统之后,首先必须要安装win11中文输入法才能打出汉字,如果在安装中文输入法之后,还是无法打出汉字,那么可能是相关服务被禁用了,将它重启即可,下面就一起来看一下吧。win11打不出汉字怎么办:1、首先我们要确保自己已经下载安装了中文输入法,或者第三方输入法软件。2、如果大家不知道如何添加输入法的话,可以查看本站的教程。3、如果添加完输入法,还是无法打汉字,那么就需要开启相关服务了。4、首先右键开始菜单,找到其中的“计算机管理”5、然后依次进入“任务计划程序”-“任务计划程序

汉字在计算机中是以什么形式输出的汉字在计算机中是以什么形式输出的Dec 07, 2020 am 11:15 AM

汉字在计算机中是以字形码形式输出的,字形码是点阵代码的一种,为了将汉字在显示器或打印机上输出,把汉字按图形符号设计成点阵图,就得到了相应的点阵代码。

计算机中汉字使用什么进行存储?计算机中汉字使用什么进行存储?Dec 07, 2020 am 10:17 AM

计算机中汉字使用机内码进行存储,汉字机内码指计算机内部存储,处理加工和传输汉字时所用的由0和1符号组成的代码,机内码是汉字最基本的编码,不管是什么汉字系统和汉字输入方法,输入的汉字外码到机器内部都要转换成机内码,才能被存储和进行各种处理。

PHP正则表达式指南:匹配汉字的方法PHP正则表达式指南:匹配汉字的方法Mar 20, 2024 pm 05:27 PM

PHP正则表达式指南:匹配汉字的方法正则表达式在文本处理中起到非常重要的作用,它能够帮助我们快速准确地匹配特定模式的文本内容。而对于中文文本的处理,特别是匹配汉字这一特殊需求,正则表达式同样可以派上用场。本文将介绍在PHP中如何使用正则表达式来匹配汉字,同时提供具体的代码示例。首先,我们需要明确汉字在Unicode编码中的范围。汉字的Unicode编码范围大

避免PHP输出汉字乱码的技巧避免PHP输出汉字乱码的技巧Mar 16, 2024 am 10:21 AM

避免PHP输出汉字乱码的技巧在进行PHP编程时,经常会遇到输出中文内容的情况。但是如果不小心处理不当,就容易出现中文乱码的情况,影响用户体验。因此,掌握一些技巧可以有效地避免PHP输出汉字乱码。下面将介绍一些具体的代码示例,帮助开发者们更好地处理中文字符输出。1.设置字符编码为UTF-8确保PHP文件本身的编码为UTF-8,可以在代码开头添加如下注释来指定

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use