15:40
<Blaze>
Hello, I was reading the Encoding Standard on WHATWG (https://encoding.spec.whatwg.org/#utf-8), and I’m scratching my head, isn’t this part already defined in the Unicode / ISO specifications?
17:39
<jmdyck>
My guess is, Unicode defines a valid UTF-8-encoded sequence of bytes, but the Encoding spec is concerned with what an implementation does when it receives any sequence of bytes, valid or not.
18:23
<annevk>
Yeah, close, Unicode has several allowed definitions around error handling. The encoder could maybe be replaced with a reference, but implementers preferred having the definition inline as well.