方法一,设置发送编码要与asp,php接受文档一样就行了。
http_request = new activexobject("msxml2.xmlhttp");
http_request.setrequestheader("content-type","application/x-www-form-urlencoded; charset=utf-8");
方法二, 针对php
直接用
iconv( "utf-8", "gb2312//ignore" , $formvalues['a'])
方法三,网页特效 escape代码
var userinfo ="getcode="+escape(getcode);
时间: 2024-10-11 09:41:22