Imap消息编码问题
从imap服务器获取的一些邮件内容看起来像=C3=B6=C3=BC=C3=B6=C3=BC=C3=B6=C3=BC=这是什么编码?邮件标头编码是 UTF-8,但使用 UTF-8 解码时我得到了乱码消息。
非常感谢任何帮助。
Some of the mails contents fetched from imap server looks like =C3=B6=C3=BC=C3=B6=C3=BC=C3=B6=C3=BC= what kind of encoding is this? Mail header encoding is UTF-8 but decoding with UTF-8 i got scrambled msg.
Any help is much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Quoted-Printable
它用于通过 7 位介质传输 8 位数据。
字符从 8 位字符转换为三个 7 位字符,格式为
=XX
,其中XX
是 8 位字符的十六进制字符代码,=
字符将变为=3D
。一行的长度限制为 76 个字符,添加软换行符以符合此规则,这是通过以
=
结尾来指示该行应该继续来完成的。https://www.rfc-editor.org/rfc/rfc2045
http://en.wikipedia.org/wiki/Quoted-printable
在线解码器
Quoted-Printable
It is used to transmit 8-bit data over a 7-bit medium.
Characters are converted from 8-bit to three 7-bit characters in the form
=XX
whereXX
is the hexadecimal character code for the 8-bit character, the=
character will become=3D
.The length of a line is restricted to 76 characters, soft line breaks are added to comply with this rule, this is done by ending with a
=
to indicate that the line should continue.https://www.rfc-editor.org/rfc/rfc2045
http://en.wikipedia.org/wiki/Quoted-printable
Online Decoder