Re: [whatwg/encoding] Decode without BOM (#85)

The present spec concepts, when generalized to apply to all encodings (currently some only apply to UTF-8) result is:

* Decode (with BOM sniffing)
* Decode with BOM removal (remove the BOM if it's for this encoding but treat BOMs for other encodings as garbage)
* Decode without BOM handling (don't look at the BOM, treat it as garbage)

encoding_rs already supports these generalizations. [The mapping onto these from the current spec concepts is documented.](https://docs.rs/encoding_rs/0.3.2/encoding_rs/#mapping-spec-concepts-onto-the-api)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/issues/85#issuecomment-270363924

Received on Wednesday, 4 January 2017 12:54:20 UTC