Closed ikreymer closed 1 month ago
If a UTF-8/UTF16-LE/UTF16-BE BOM is detected, ensure the text is then re-encoded as UTF-8 (without BOM markers) and a charset='utf-8' is added to the content-type header (if not there).
charset='utf-8'
Otherwise, the rewritten response may be parsed incorrectly by the browser. Example: https://www.ledevoir.com/css/nweb/main.css?20240529
If a UTF-8/UTF16-LE/UTF16-BE BOM is detected, ensure the text is then re-encoded as UTF-8 (without BOM markers) and a
charset='utf-8'
is added to the content-type header (if not there).Otherwise, the rewritten response may be parsed incorrectly by the browser. Example: https://www.ledevoir.com/css/nweb/main.css?20240529