var fs = require('fs'); var file = fs.readFileSync('c:\test.txt', "utf8"); console.log(file); test.txt内容:hello您好 如果文件中是字母的话,可以读出。例如:hello 如果含有中文就是 hello���� 了 请问如何读取中文字符,谢谢!