Answer the question
In order to leave comments, you need to log in
Why did the encoding fail?
When you go to the users/cool page, the encoding flies. (in the vs code editor, the encoding is utf-8).
var express = require('express');
var router = express.Router();
/* GET users listing. */
router.get('/', function(req, res, next) {
res.send('respond with a resource');
});
router.get('/cool', function(req, res, next) {
res.writeHeader(200, { 'Content-Type': "text/html; charset = utf-8" });
res.end('Ты такой крутой\n');
});
module.exports = router;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question