8000 Use utf8 for readFile · HowProgrammingWorks/Sandboxes@a622410 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit a622410

Browse files
committed
Use utf8 for readFile
1 parent 9dabd98 commit a622410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JavaScript/framework.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const api = { timers, events };
3434

3535
// Read an application source code from the file
3636
const fileName = './application.js';
37-
fs.readFile(fileName, (err, src) => {
37+
fs.readFile(fileName, 'utf8', (err, src) => {
3838
// We need to handle errors here
3939

4040
// Wrap source to lambda, inject api

0 commit comments

Comments
 (0)
0