Readings: Buffers - jacobwendt-401-advanced-javascript/cr-js-401d3 GitHub Wiki

Readings: Buffers

  • The Buffer class was introduced as part of the Node.js API to make it possible to manipulate or interact with streams of binary data.

Character Sets

  • Character Sets are already defined rules of what exact number represents each character.
  • There are different definitions of these rules.The very popular ones include Unicode and ASCII.
  • JavaScript plays really well with Unicode Character Sets.

Character Encoding

  • There are rules that define how that number should be represented in binaries. This is called Character Encoding.
  • One of the definitions for Character Encoding is the UTF-8
  • UTF-8 states that characters should be encoded in bytes.