var request = require("request")
var url = ""
request({
url:url,
method:"POST",
json:true,
headers:{
"content-type":"application/json",
},
body:JSON.stringify({
body:
{
content:"",
visitor_name:"",
visitor_company_name:"",
check_in_plcae:"",
visitor_type:"01",
host:"03",
visitor_num:"1",
photo:""
}
}),function (error,response,body) {
if(!error && response.statusCode == 200){
console.log(body);
}
}
})
Please help me to see why it is sent out like this. The other party has received garbled codes in Chinese
."{\"body\":{\"content\":\"???\",\"visitor_name\":\"????\",\"visitor_company_name\":\"????\",\"check_in_plcae\":\"????\",\"visitor_type\":\"01\",\"host\":\"???01\",\"visitor_num\":\"1\",\"photo\":\"\"}}"
how to solve the problem of Chinese garbled codes when sending post in node.js request module