UTF-8’s encoder’s handler, given a stream and code point, runs these steps:...
I would like to know what the stream is, and what the code point is. I understand that code points are characters, which in utf8 might be composed of multiple 8-bit code units.
x (something else) such as decimal encoding or whatever that may mean.
I am just not sure what format/encoding the bytes are coming in as, and also why we need to do the conversion. For example, in here when they mention the "Buffer class is ... raw binary data" (in Node.js), I am not sure what that raw binary data means. Maybe that just means it is UTF16, which is why it would then maybe need to be converted to UTF8, I am not sure. And when this mentions
JSON.parse doesn't do any string decoding, I start to wonder if this means that
JSON.parse assumes UTF16 encoding, or perhaps it assumes UTF8 encoding, I'm not sure. Searching for the "encoding
JSON.parse uses" doesn't reveal anything.