Skip to content

Commit

Permalink
Specify utf8 encoding.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Feb 17, 2016
1 parent b188f90 commit 4f702e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/common/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ var _ = require('lodash'),

function globTemplate(pattern) {
return _.transform(glob.sync(pattern), function(result, filePath) {
result[path.basename(filePath, path.extname(filePath))] = _.template(fs.readFileSync(filePath));
var key = path.basename(filePath, path.extname(filePath));
result[key] = _.template(fs.readFileSync(filePath, 'utf8'));
}, {});
}

Expand Down

0 comments on commit 4f702e2

Please sign in to comment.