Specify utf8 encoding to fs.readFileSync()

This commit is contained in:
Kevin Sawicki
2013-06-13 08:34:26 -07:00
parent bc6daaeac2
commit 021fbc533f

View File

@@ -108,7 +108,7 @@ module.exports =
# Open, read, and close a file, returning the file's contents.
read: (filePath) ->
String fs.readFileSync(filePath)
fs.readFileSync(filePath, 'utf8')
# Open, write, flush, and close a file, writing the given content.
writeSync: (filePath, content) ->