中文乱码处理

1.在get方式中的乱码

js代码

var fullCname=encodeURI(encodeURI(getSelected().fullCname));

var url='key_hasuser.jsp?hasKey=0&keyid='+id+'&keyFullCname='+fullCname;

java代码

keyFullCname = URLDecoder.decode(keyFullCname,"UTF-8");

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