Schreiben Sie in UTF8 fs
fs.writeFileSync(dir, "Text", "utf8")
Blue Buzzard
fs.writeFileSync(dir, "Text", "utf8")