Software testing study notes: basic introduction to coding

Basic introduction to coding

1. What is encoding

The so-called coding refers to the "translation" of natural language that humans can understand into machine language that computers can understand.

Second, the idea of ​​coding

For computers, it is binary that can be read, and for humans, it is all kinds of natural languages. At this time, we can artificially map natural language and binary data one-to-one. In this way, we are equivalent to A relationship correspondence table was prepared. In this table, a correspondence is established between the characters in our human language and the numbers in the binary system. At this time, the computer can recognize the human language.

Three, ascii code table introduction

It is the first universal "single-byte" encoding table in the world, in which the correspondence between 256 characters is artificially defined. It is divided into three parts. The first part is non-printable characters, and the second part is printable. Characters, the third part is extended characters
Insert picture description here

Four, character set

The so-called character set and code table are similar concepts. Chinese characters are not included in the ascii code table, so if you directly use the ascii code to process Chinese, it will cause the problem of garbled codes, so later slowly based on the ascii code table appeared again There are many other coding standards. Currently the most common encoding standard for processing Chinese is UTF8

Guess you like

Origin blog.csdn.net/m0_51684972/article/details/112297463