nodejs中文乱码
最近在研究nodejs,写了一个测试例子,结果中文都是乱码,不知如何解决
var http = require("http");http.createServer(function(request, response) {response.writeHead(200, {"Content-Type": "text/html"});response.write('<!doctype html>'+'<html>'+'<head>'+'<meta charset="utf-8"/>'+'<title>米诺</title>'+'</head>'+'<body>'+'<a href="/home.js">主页</a>'+'<a href="/contact.js">Contact</a>'+'</body>'+'</html>'); response.end(); }).listen(8888);console.log("服务启动");