JSON Specification and usage of BOM/charset-encoding

后端 未结 2 742
一整个雨季
一整个雨季 2020-11-27 19:00

I\'ve been reading up on the RFC-4627 specification, and I\'ve come to interpretation:

When advertising a payload as application/json mime-type,

2条回答
  •  眼角桃花
    2020-11-27 19:52

    I think you are correct about question 1, due to Section 3 about the first two characters being ASCII and the unicode FAQ on BOMs, see "Q: How I should deal with BOMs?", answer part 3. Your emphasis on MUST may be a bit strong: the FAQ seems to imply SHOULD.

    Don't know the answer to question 2.

提交回复
热议问题