3 ms·
Agree this should be addressed. They explicitly deprecate text/yaml, but don't justify the choice. I could speculate that the YAML spec assumes full Unicode r
by michael1999 3y ago
Agree this should be addressed. They explicitly deprecate text/yaml, but don't justify the choice.
I could speculate that the YAML spec assumes full Unicode repertoire, and the only choices are UTF-8/16/32 BE/LE. But text/* allows (encourages) middle-boxes to guess and translate encodings to local standards (e.g. sniff Latin-1 and "helpfully" rewrite to 8859-9) to allow legacy clients to read text. A yaml file is more data than text, so text/* isn't appropriate. Similar to application/json.
Not sure I agree, but my smallest complaint about yaml.