字符集和字符编码
HTML authors need to look up HTML character encodings frequently as some characters can not (or hard to) be typed out directly from the keyboard. If you would like not do the math and search, you may find the HTML symbols you want to use and its HTML code in Reference: Special HTML Characters.
HTML作者需要经常查找HTML字符编码,因为某些字符不能(或很难)直接从键盘上键入。 如果您不想进行数学和搜索,可以在《 参考:特殊HTML字符》中找到要使用HTML符号及其HTML代码。
根据ASCII码计算HTML字符编码 (Calculating the HTML character encoding from ASCII code)
The characters that appear in ASCII Table can be represented with its decimal ASCII code.
For example, we want to encode HTML character ‘[‘.
例如,我们要编码HTML字符“ [”。
First, look up the ASCII Table and find:
首先,查找ASCII表并找到:
091 133 0x5B 01011011 [ (left opening bracket)
The decimal value for ‘[‘ is 091. The the HTML character encoding for ‘[‘ is: [
'['的十进制值为091 。 [[]HTML字符编码为: [
HTML文档字符集 (The HTML Document Character Set)
You can also simply look up the character from HTML character set tables, such as this one The HTML Document Character Set.
您还可以简单地从HTML字符集表中查找字符,例如HTML字符集 。
通过工具编码HTML字符 (Encoding HTML characters by tools)
Some nice tools are available on the Web to encode HTML characters for you. You may search for these tools on the Internet.
Web上有一些不错的工具可以为您编码HTML字符。 您可以在Internet上搜索这些工具。
翻译自: https://www.systutorials.com/html-document-character-set-and-encoding/
字符集和字符编码