简体   繁体   English

Content-Type HTTP标头中“charset”的范围

[英]Scope of “charset” in Content-Type HTTP header

HTTP responses generated by the Pyramid web framework append ; charset=UTF-8 Pyramid Web框架生成的HTTP响应附加; charset=UTF-8 ; charset=UTF-8 to the Content-Type HTTP header. ; charset=UTF-8Content-Type HTTP标头。 For example, 例如,

Content-Type: application/json; charset=UTF-8

Section 14.17 of RFC 2616 gives an example of this: RFC 2616的第14.17节给出了一个例子:

Content-Type: text/html; charset=ISO-8859-4

However, there's no description of the role of this charset "property". 但是,没有描述这个charset “property”的作用。 What scope does this have, and who interprets it? 这有什么范围,谁解释它?

It defines the character encoding of the entity being transferred, and can be interpreted by the remote user. 它定义了正在传输的实体的字符编码,并且可以由远程用户解释。 Pyramid is telling everyone that it only ever talks to people in UTF-8, rather than defaulting to ISO-8859-1. 金字塔告诉大家,它只与UTF-8的人交谈,而不是默认为ISO-8859-1。

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

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