XHR runs encoding detection on the response body if - The response type is "json", and - The response body has BOM. This is a spec violation. The requires us to always use UTF8 when the response type is "json" in https://xhr.spec.whatwg.org/#dom-xmlhttprequest-response.

Specification

Specification link


Specification being incubated in a Community Group

Status in Chromium

Blink>Network>XHR


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Last updated on 2021-06-17