Answer the question
In order to leave comments, you need to log in
Why does the browser incorrectly perceive the encoding of the js file?
Node v6.2 using gulp creates a js file, then sends it in the standard way via express
app.use('/public',express.static(__dirname + '/public'));
Content-Type: application/javascript
<meta charset="window-1251">
Answer the question
In order to leave comments, you need to log in
You can try to specify the encoding in the headerContent-Type: application/javascript; charset=utf8
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question