=xx 符号在哪个 RFC 中定义?
对于 form/multipart-data,我看到的输入格式为 =[2 到 6 个十六进制字符]。 我想知道哪个 RFC 定义了它? 我想将非文件形式数据编码为二进制字符流,以便 iconv 不会产生错误的输出。我认为该行为类似于 formurl 编码解码。
For form/multipart-data, I've seen input that has the form =[2 to 6 hex chars].
I'm wondering which RFC defines it?
I want to encode non-file form data to a binary char stream so that iconv doesn't produce bad output. I reckon the behavior is similar to formurl-encoded decoding.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
multipart/form-data
基于 RFC 2045 和 < a href="http://www.ietf.org/rfc/rfc2046.txt" rel="nofollow">RFC 2046,在 RFC 2388,并包含在 W3C 标准中HTML40 第 13.4 节和 HTML5 第 4.10.22.6 节。您看到的编码是 MIME 的quoted-printable
编码,它在 中定义RFC 2045 第 6.7 节。quoted-printable
编码对字节八位位组进行操作,因此在=
字符之后始终包含 2 个十六进制字符(“软”换行符除外,它由 < code>= 字符后跟 CRLF 换行符)。multipart/form-data
is based on RFC 2045 and RFC 2046, formalized in RFC 2388, and included in W3C standards HTML40 Section 13.4 and HTML5 Section 4.10.22.6. The encoding you are seeing is MIME'squoted-printable
encoding, which is defined in RFC 2045 Section 6.7. Thequoted-printable
encoding operates on byte octets, and thus will ALWAYS contain 2 hex characters after a=
character (except for "soft" line breaks, which consist of a=
character followed by a CRLF line break).