Answer the question
In order to leave comments, you need to log in
How to specify encoding on nodejs in post request?
Good day I ran into a small problem, I send an
ajax request from the client to the server, data of the form "a='Cyrillic'&b='
More
Cyrillic'" it is necessary to make that the server recognizes Russian characters?
When sending a file from the server, I give utf-8 in the header
response.writeHead(200, {"Content-Type": `text/${textType}; charset=UTF-8`});
var formidable = require('formidable');
var form = new formidable.IncomingForm();
function (request, response) {
....
form.parse(request, function (err, fields, files) {
fields.a//Кракозябра
}
....
}
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