简体   繁体   English

消息头的区别:Content-Type: charset="UTF-8" 和 Content-Transfer-Encoding: 8bit

[英]Difference between message headers: Content-Type: charset=“UTF-8” and Content-Transfer-Encoding: 8bit

I had received some mail message, but I was confused with these headers:我收到了一些邮件消息,但我对这些标题感到困惑:

Content-Type: text/plain;
    format=flowed;
    charset="UTF-8";
    reply-type=response
Content-Transfer-Encoding: 8bit

If Content-Type: charset="UTF-8" is already specified, so why we need Content-Transfer-Encoding: 8bit ?如果Content-Type: charset="UTF-8"已经指定,那么为什么我们需要Content-Transfer-Encoding: 8bit

Because you can also have:因为您还可以拥有:

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

The charset is independent of the content encoding.字符集独立于内容编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM