![](/img/trans.png)
[英]Setting the 'charset' property on the Content-Type header in the golang HTTP FileServer
[英]Scope of “charset” in Content-Type HTTP header
Pyramid Web框架生成的HTTP响应附加; charset=UTF-8
; charset=UTF-8
到Content-Type
HTTP标头。 例如,
Content-Type: application/json; charset=UTF-8
RFC 2616的第14.17节给出了一个例子:
Content-Type: text/html; charset=ISO-8859-4
但是,没有描述这个charset
“property”的作用。 这有什么范围,谁解释它?
它定义了正在传输的实体的字符编码,并且可以由远程用户解释。 金字塔告诉大家,它只与UTF-8的人交谈,而不是默认为ISO-8859-1。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.