0

my web page encoding is gbk,But grunt-contrib-connect output encoding is utf-8:

Connection:keep-alive
content-length:3457
Content-Type:text/html; charset=UTF-8

so, my page becomes garbled. I know there may be is connect npm's problem,but I do not know how to solve.

I hope to get help here, thank you!

Raptor
  • 53,206
  • 45
  • 230
  • 366
Zk Liao
  • 117
  • 1
  • 1
  • 6
  • It's so rare that `gbk` is used; you'd better change to `utf-8` instead. – Raptor Jun 10 '15 at 03:09
  • So the 1.2 billion people in China who can read simplified Chinese represents an "edge case"? – Greg Burghardt Jun 10 '15 at 03:53
  • Possible duplicate of [How to convert character encoding from CP932 to UTF-8 in nodejs javascript, using the nodejs-iconv module (or other solution)](http://stackoverflow.com/questions/6411570/how-to-convert-character-encoding-from-cp932-to-utf-8-in-nodejs-javascript-usin) – Paul Sweatte Oct 21 '15 at 11:58

0 Answers0