Nodejs Initiates post Request to Submit Data to gbk Code

  node.js, question

Go implementation

This can be done when submitting by The go Programming Language (Golang).

enc := mahonia.NewEncoder("gbk")
 Msg = enc.ConvertString ('hello, hello')

Nodejs implementation

Since the submission server only accepts gbk codes

var postData = querystring.stringify({
 'user' : user,
 Msg':' Hello, hello',
 var options = {
 hostname: '',
 port: 8012,
 path: '/',
 method: 'POST',
 headers: {
 'Content-Type': 'application/x-www-form-urlencoded',
 'Content-Length': Buffer.byteLength(postData)

If the abovemsgtransfergbkWhere’s the code?