为了正确显示 HTML 页面,Web 浏览器必须知道要使用哪个字符集。 从 ASCII 到 UTF-8ASCII 是第一个字符编码标准。ASCII 定义了 128 种可以在互联网上使用的字符:数字(0-9)、英文字母(A-Z)和一些特殊字符,比如:! $ + - ( ) @ < >。 ISO-8859-1 是 HTML 4 的默认字符集。此字符集支持 256 个不同的字符代码。HTML 4 同时支持 UTF-8。 ANSI(Windows-1252)是原始的 Windows 字符集。 ANSI 与 ISO-8859-1 相同,不同之处在于 ANSI 具有 32 个额外的字符。 HTML5 规范鼓励 Web 开发人员使用 UTF-8 字符集,该字符集涵盖了世界上几乎所有的字符和符号! HTML charset 属性为了正确显示 HTML 页面,Web 浏览器必须了解页面中使用的字符集。 这在 <meta> 标签中指定: <meta charset="UTF-8"> 亲自试一试 字符集之间的差异下表展示了上述字符集之间的区别: Numb | ASCII | ANSI | 8859 | UTF-8 | Description |
---|
32 |
|
|
|
| space | 33 | ! | ! | ! | ! | exclamation mark | 34 | " | " | " | " | quotation mark | 35 | # | # | # | # | number sign | 36 | $ | $ | $ | $ | dollar sign | 37 | % | % | % | % | percent sign | 38 | & | & | & | & | ampersand | 39 | ' | ' | ' | ' | apostrophe | 40 | ( | ( | ( | ( | left parenthesis | 41 | ) | ) | ) | ) | right parenthesis | 42 | * | * | * | * | asterisk | 43 | + | + | + | + | plus sign | 44 | , | , | , | , | comma | 45 | - | - | - | - | hyphen-minus | 46 | . | . | . | . | full stop | 47 | / | / | / | / | solidus | 48 | 0 | 0 | 0 | 0 | digit zero | 49 | 1 | 1 | 1 | 1 | digit one | 50 | 2 | 2 | 2 | 2 | digit two | 51 | 3 | 3 | 3 | 3 | digit three | 52 | 4 | 4 | 4 | 4 | digit four | 53 | 5 | 5 | 5 | 5 | digit five | 54 | 6 | 6 | 6 | 6 | digit six | 55 | 7 | 7 | 7 | 7 | digit seven | 56 | 8 | 8 | 8 | 8 | digit eight | 57 | 9 | 9 | 9 | 9 | digit nine | 58 | : | : | : | : | colon | 59 | ; | ; | ; | ; | semicolon | 60 | < | < | < | < | less-than sign | 61 | = | = | = | = | equals sign | 62 | > | > | > | > | greater-than sign | 63 | ? | ? | ? | ? | question mark | 64 | @ | @ | @ | @ | commercial at | 65 | A | A | A | A | Latin capital letter A | 66 | B | B | B | B | Latin capital letter B | 67 | C | C | C | C | Latin capital letter C | 68 | D | D | D | D | Latin capital letter D | 69 | E | E | E | E | Latin capital letter E | 70 | F | F | F | F | Latin capital letter F | 71 | G | G | G | G | Latin capital letter G | 72 | H | H | H | H | Latin capital letter H | 73 | I | I | I | I | Latin capital letter I | 74 | J | J | J | J | Latin capital letter J | 75 | K | K | K | K | Latin capital letter K | 76 | L | L | L | L | Latin capital letter L | 77 | M | M | M | M | Latin capital letter M | 78 | N | N | N | N | Latin capital letter N | 79 | O | O | O | O | Latin capital letter O | 80 | P | P | P | P | Latin capital letter P | 81 | Q | Q | Q | Q | Latin capital letter Q | 82 | R | R | R | R | Latin capital letter R | 83 | S | S | S | S | Latin capital letter S | 84 | T | T | T | T | Latin capital letter T | 85 | U | U | U | U | Latin capital letter U | 86 | V | V | V | V | Latin capital letter V | 87 | W | W | W | W | Latin capital letter W | 88 | X | X | X | X | Latin capital letter X | 89 | Y | Y | Y | Y | Latin capital letter Y | 90 | Z | Z | Z | Z | Latin capital letter Z | 91 | [ | [ | [ | [ | left square bracket | 92 | \ | \ | \ | \ | reverse solidus | 93 | ] | ] | ] | ] | right square bracket | 94 | ^ | ^ | ^ | ^ | circumflex accent | 95 | _ | _ | _ | _ | low line | 96 | ` | ` | ` | ` | grave accent | 97 | a | a | a | a | Latin small letter a | 98 | b | b | b | b | Latin small letter b | 99 | c | c | c | c | Latin small letter c | 100 | d | d | d | d | Latin small letter d | 101 | e | e | e | e | Latin small letter e | 102 | f | f | f | f | Latin small letter f | 103 | g | g | g | g | Latin small letter g | 104 | h | h | h | h | Latin small letter h | 105 | i | i | i | i | Latin small letter i | 106 | j | j | j | j | Latin small letter j | 107 | k | k | k | k | Latin small letter k | 108 | l | l | l | l | Latin small letter l | 109 | m | m | m | m | Latin small letter m | 110 | n | n | n | n | Latin small letter n | 111 | o | o | o | o | Latin small letter o | 112 | p | p | p | p | Latin small letter p | 113 | |留言发给站长
|
|
Column 1 |
Column 2 |
Column 3 |
R1C1 |
R1C2 |
R1C3 |
Item |
Item |
Item |
---------------
右边分栏
基本
文件
流程
错误
SQL
调试
- 请求信息 : 2024-12-31 00:38:32 HTTP/1.1 GET : http://web.0shequ.com/webh/index/info/?id=25
- 运行时间 : 0.025268s [ 吞吐率:39.58req/s ] 内存消耗:4,054.33kb 文件加载:148
- 查询信息 : 0 queries
- 缓存信息 : 0 reads,0 writes
- 会话信息 : SESSION_ID=fb193816b2be919602c3d061390e2401
- CONNECT:[ UseTime:0.002385s ] mysql:host=localhost;port=3306;dbname=web0shequ;charset=utf8
- SHOW FULL COLUMNS FROM `box_webh` [ RunTime:0.002208s ]
- SELECT * FROM `box_webh` WHERE `id` = 25 LIMIT 1 [ RunTime:0.000880s ]
- SELECT * FROM `box_webh` `c` WHERE `id` > 0 ORDER BY `id` DESC [ RunTime:0.005607s ]
0.033600s
|