Met*_*mel 5 javascript ajax xmlhttprequest
我想XmlHttpRequest不要触摸(即转换为UTF-8或任何其他编码)它向服务器发送和从服务器接收的任何字符.
对于从服务器收到的字符,我知道我可以做XmlHttpRequest#overrideMimeType('text/plain; charset=x-user-defined'),并且字符保持不变.
但是,对于通过XmlHttpRequest#send呼叫发送到服务器的字符,我找不到告诉XmlHttpRequest不要触摸这些字符的方法.无论我尝试什么,我都看到它们会XmlHttpRequest编码UTF-8.有办法防止这种情况吗?