diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/utf-8 | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/glossary/utf-8')
-rw-r--r-- | files/zh-cn/glossary/utf-8/index.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/utf-8/index.html b/files/zh-cn/glossary/utf-8/index.html new file mode 100644 index 0000000000..e5e4d1eb36 --- /dev/null +++ b/files/zh-cn/glossary/utf-8/index.html @@ -0,0 +1,17 @@ +--- +title: UTF-8 +slug: Glossary/UTF-8 +translation_of: Glossary/UTF-8 +--- +<p>UTF-8 (UCS Transformation Format 8)是万维网上最常用的{{Glossary("Character encoding", "字符编码")}}。每个字符由 1 到 4 个字节表示。UTF-8 与 {{Glossary("ASCII")}} 向后兼容,可以表示任何标准的 Unicode字符。</p> + +<p>前 128 个 UTF-8 字符与前 128 个 ASCII 字符(编号为 0-127) 精确匹配,这意味着现有的 ASCII 文本已经是有效的 UTF-8。所有其他字符都使用 2 到 4 个字节。每个字节都有一些用于编码目的的保留位。由于非 ASCII 字符需要一个以上的字节来存储,如果字节被分隔而不重组,那么它们就会有损坏的风险。</p> + +<h2 id="了解更多" style="line-height: 18px; font-size: 1.28571rem;"><strong style="font-size: 1.71428571428571rem;">了解更多</strong></h2> + +<h3 id="General_knowledge"><strong>General knowledge</strong></h3> + +<ul> + <li>{{Interwiki("wikipedia", "UTF-8")}} on Wikipedia</li> + <li><a href="http://www.unicode.org/faq/utf_bom.html#UTF8">FAQ about UTF-8 on Unicode website</a></li> +</ul> |