ajax 中文乱码

var data = "article.title="+encodeURIComponent(title)+"&article.content="+encodeURIComponent(content)+"&comment="+encodeURIComponent(comment)+"&reprint="+encodeURIComponent(reprint)+
                  "&categoryId="+encodeURIComponent(categoryId)+"&status="+encodeURIComponent(status);
                  createXMLHttpRequest();
                  xmlrequest.open("GET","draft_save",false);
                  xmlrequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
                  xmlrequest.onreadystatechange = processResponse;
                  xmlrequest.send(data);

你可能感兴趣的:(ajax 中文乱码)