Given the following code
var http = require('http'); http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text'}); response.write("Okay โ so recently I've started presenting a session to various groups involving the well known IOC container "StructureMap"", 'utf8'); response.end(); }).listen(8080);
I get a conclusion
Well, so recently I started presenting the session to various groups with the participation of the well-known IOC container "Structure Structure" and, despite quite clear about the content from what was said, I will get very little backlash to demonstrate anything that even remotely resembles a service location, etc.
This is clearly wrong - but it is wrong because I have the wrong encoding (should UTF8 do this ... right? ... right?) Or is it wrong because node is doing something weird?
I am using the latest version of node cloned from github yesterday.
Rob ashton
source share