On Thu, May 25, 2017 at 10:44 PM, <[email protected]> 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 [email protected] https://hsivonen.fi/ _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

