in the HTML code specifies that the encoding of the web page is utf-8. Web page coding involves a lot of knowledge points, and generally speaking, it is also a problem left over from history. The first computer (ENIAC) was born in the United States in February 1946. At that time, the United States only considered its own use, and developed a set of ASCII code standards (American Standard Code for I) in the years after the birth of the computer."/> in the HTML code specifies that the encoding of the web page is utf-8. Web page coding involves a lot of knowledge points, and generally speaking, it is also a problem left over from history. The first computer (ENIAC) was born in the United States in February 1946. At that time, the United States only considered its own use, and developed a set of ASCII code standards (American Standard Code for I) in the years after the birth of the computer.">

Home  >  Article  >  Web Front-end  >  What is the fundamental cause of garbled web pages?

What is the fundamental cause of garbled web pages?

一个新手
一个新手Original
2017-10-12 10:42:397889browse

先看段代码:


<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>网页编码</title>
</head>
<body>
</body>
</html>

    HTML代码中的f7cc7cb3585ee1b04726d7fb499fdd83 指定了网页的编码为utf-8。
    网页编码涉及的知识点比较多,总的说来它也是一个历史遗留问题。
    第一台计算机(ENIAC)于1946年2月诞生于美国,当时美国只考虑自己使用,并在计算机诞生后的几年里制定了一套ASCII码标准(American Standard Code for Information Interchange,美国信息交换标准代码),它是基于拉丁字母的一套电脑编码系统,主要用于显示现代英语和其他西欧语言。
    ASCII码使用8位二进制数组合来表示256种可能的字符(2的8次方=256),包含了大小写字母,数字0到9,标点符号,以及在美式英语中使用的特殊控制字符。一个字符占1个字节。ASCII码表部分编码如下:

    HTML的转义符(字符实体),比如符号“8845d6bd8b391c604ca574528f43e1e9 Corresponding encoding, but if you use other website code editors, such as Notepad, Editplus, etc., you need to pay attention to selecting the correct encoding when saving the file).

The above is the detailed content of What is the fundamental cause of garbled web pages?. 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