On Thu, May 25, 2017 at 10:44 PM,  <gabi.t.san...@gmail.com> wrote:
>  Think of XML files without the "encoding" attribute in the declaration or 
> HTML files without the meta charset tag.

Per spec, these must be treated as UTF-16 if there's a UTF-16 BOM and
as UTF-8 otherwise. It's highly inappropriate to run heuristic
detection for XML.

-- 
Henri Sivonen
hsivo...@hsivonen.fi
https://hsivonen.fi/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to