title: List of encodings that Node.js supports
body: <p>I need to read a file which is encoded with ISO-8859-1 (also called latin1), something like this:</p>
  
  <pre><code>var file_contents = fs.readFileSync("test_data.html", "latin1");
  </code></pre>
  
  <p>However, Node complains about "latin1" or "ISO-8859-1" not being a valid encoding ("Error: Unknown encoding").</p>
  
  <p>What encodings does <code>readFileSync</code> accept?</p>