For HTTP responses with Content-Types suggesting character data, which charset should be assumed by the client if none is specified?

后端 未结 6 2074
说谎
说谎 2021-02-07 23:08

If no charset parameter is specified in the Content-Type header, RFC2616 section 3.7.1 seems to imply ISO8859-1 should be assumed for media types of subtype "text":

6条回答
  •  粉色の甜心
    2021-02-07 23:34

    It's a bit special for XMLHttpRequest and is described here: http://www.w3.org/TR/XMLHttpRequest/

提交回复
热议问题