From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/glossary/percent-encoding/index.html | 76 ++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 files/zh-cn/glossary/percent-encoding/index.html (limited to 'files/zh-cn/glossary/percent-encoding') diff --git a/files/zh-cn/glossary/percent-encoding/index.html b/files/zh-cn/glossary/percent-encoding/index.html new file mode 100644 index 0000000000..c874c580a3 --- /dev/null +++ b/files/zh-cn/glossary/percent-encoding/index.html @@ -0,0 +1,76 @@ +--- +title: Percent-encoding +slug: Glossary/percent-encoding +tags: + - WebMechanics + - 词汇表 +translation_of: Glossary/percent-encoding +--- +

百分比编码 是一种拥有8位字符编码的编码机制,这些编码在{{Glossary("URL")}}的上下文中具有特定的含义。它有时被称为URL编码。编码由英文字母替换组成:“%” 后跟替换字符的ASCII的十六进制表示。

+ +

需要编码的特殊字符有: ':''/''?''#''['']''@''!''$''&'"'"'('')''*''+'','';''=',以及,'%' 本身. 其他的字符虽然可以进行编码但是不需要。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
':''/''?''#''['']''@''!''$''&'"'"'('')''*''+'','';''=''%'' '
%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D%25%20 或 +
+ +

根据上下文, 空白符 ' ' 将会转换为 '+' (必须在HTTP的POST方法中使定义 application/x-www-form-urlencoded  传输方式), 或者将会转换为 '%20' 的 URL。

+ +

学习更多

+ +

基本知识

+ + + +

技术规范

+ + -- cgit v1.2.3-54-g00ecf