Is it possible to set accept-charset for new FormData (XHR2) object or workaround
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Here is example code ( http://jsfiddle.net/epsSZ/1/ ): HTML: JS: window.sendForm = function() { var oOutput = document.getElementById("output"), oData = new FormData(document.forms.namedItem("fileinfo")); var oReq = new XMLHttpRequest(); oReq.open("POST", "/echo/html", true); oReq.send(oData); } When i submit this old way via standart form submit, then request payload looks like this: ------WebKitFormBoundary2890GbzEKCmB08rz Content-Disposition: form-data; name="label" får løbende But when i submit this AJAX way, then it looks little