因为网站编码是gb2312。在使用prototype的ajax时遇到中文参数乱码的问题。 解决办法: 1.将参数用encodeURI()编码 var myAjx=new Ajax.Request(url,{method: 'get',parameters: encodeURI(par) ,onComplete: submit}); 2.接受端代码 接受中文 相关文章: