I am trying to read the contents of a properties file in node. this is my call:
fs.readFile(\"server/config.properties\", {encoding: \'utf8\'}, function(err, dat
You should change {encoding: 'utf8'} to {encoding: 'utf-8'}, for example:
{encoding: 'utf8'}
fs.readFile("server/config.properties", {encoding: 'utf-8'}, function(err, data ) { console.log( data ); });