We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
综述:encode ~= escape
encode
escape
只能说大部分通常的使用都有约定的名称,比如
url encode
html escape
escape sequence
The text was updated successfully, but these errors were encountered:
html escape: 通常是以 &# 开头,如 �;
&#
�;
url encode: 都是以 % 开头,本身有几个适用于不同场景的协议,比如目前最新的 RFC3896,也有适用于 http/(post|get) 的 x-www-form-urlencoded
%
http/(post|get)
x-www-form-urlencoded
wiki-链接:https://en.wikipedia.org/wiki/Percent-encoding#The_application.2Fx-www-form-urlencoded_type 实现:%E8%AE%B8这种是许的三字节编码,可以转成\u8bb8这边unicode编码(utf-8采用可变长字节编码,以三字节编码为例,固定格式1110xxxx 10xxxxxx 10xxxxxx,可以转成三字节码,同时也可以对其中的变化部分xxx进行编码,四个一组成为\u8bb8这种16进制的编码);
%E8%AE%B8
许
\u8bb8
Unicode符号范围 | UTF-8编码方式 (十六进制) | (二进制) —————————————————————– 0000 0000-0000 007F | 0xxxxxxx 0000 0080-0000 07FF | 110xxxxx 10xxxxxx 0000 0800-0000 FFFF | 1110xxxx 10xxxxxx 10xxxxxx 0001 0000-0010 FFFF | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx // 前面是unicode编码`\uFFFF`, 后面代表需要在网络上如何传输
js escape sequence: 比如 \xhh 、\uhhhh、 \u{hhh*} 、\ooo,具体见issue-链接
\xhh
\uhhhh
\u{hhh*}
\ooo
js integer literal: mdn-链接,固定以 0[oOxXbB] 2 个字符开始。
0[oOxXbB]
16进制:0xhhh* 0Xhhh* 8进制:0oooo* 0Oooo* 2进制:0bbbb* 0Bbbb*
Sorry, something went wrong.
关于git下中文输出八进制的转码\xxx,git默认配置core.quotepath为true,会对中文文件名、中文路径转义成\xxx\xxx这种编码。可以通过设置下面来更改。
\xxx
core.quotepath
\xxx\xxx
git config --global core.quotepath false
No branches or pull requests
综述:
encode
~=escape
只能说大部分通常的使用都有约定的名称,比如
url encode
html escape
escape sequence
The text was updated successfully, but these errors were encountered: