字符集和字符编码_HTML文档字符集和编码

字符集和字符编码

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.

ASCII表中出现的字符可以用其十进制ASCII码表示。

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/

字符集和字符编码

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值