Open Close
Open Close
WHATWG HTML spec uses a very simplified algorithm to retrieve encoding name in `http-equiv="Content-Type" content="text/html; charset=...` case. https://html.spec.whatwg.org/multipage/urls-and-fetching.html#extracting-character-encodings-from-meta-elements It only searches 'charset' literal characters, and if failed, continues searching 'charset'....
'<meta charset="iso-8859- 2">' or '<meta charset="iso-8859-%2">' returns 'Error Internal encoding declaration [...] disagrees with the actual encoding of the document (utf-8).' While invald encoding name e.g '<meta charset=iso-8859-2a>' returns 'Error:...