ajax get 传中文
程序员文章站
2022-07-12 18:07:26
...
var path = document.getElementById("photopath").value;
url="save_picture.jsp?photopath="+encodeURIComponent(path);
//...ajax send use get's method
jsp
String path = new String(path.getBytes("ISO-8859-1"),"UTF-8");
也可用于页面get方法传参时不想让人明显看到内容时
上一篇: Conversion to Dalvik format failed:问题解决
下一篇: ajax