I have a file.txt and content of it is:
\u0048\u0065\u006c\u006c\u006f\u0020\u0057\u006f\u0072\u006c\u0064\u0021
It is 'Hello World!' in UTF-16.
If my code is:
let data = '\u0048\u0065\u006c\u006c\u006f\u0020\u0057\u006f\u0072\u006c\u0064\u0021';
console.log(data);
It is print out: 'Hello World!'
But If I use readFileSync() and console.log(), it isn't print out 'Hello World!':
let data = fs.readFileSync('file.txt',{encoding:'utf8', flag:'r'});
console.log(data);
Why?
Example:

utf16?