Permalink
Browse files

fs

  • Loading branch information...
1 parent 7b0116a commit 2c719759a8f42c94f33d6bb20017f6b7801dbfde Ubuntu committed Jul 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 web.js
View
4 web.js
@@ -5,9 +5,9 @@ var app = express.createServer(express.logger());
app.get('/', function(request, response) {
-var buf = fs.readFileSync("index.html");
+var buf = fs.readFileSync("index.html", "utf-8");
-response.send(buf);
+response.send(buf.toString("utf-8", 0, buf.length));
// response.send('Hello World 3!');
});

0 comments on commit 2c71975

Please sign in to comment.