1.
js: encodeURI(con)
java: java.net.URLDecoder.decode(con, "UTF-8")
2.
new String(con.getBytes("ISO-8859-1"), "UTF-8")
3.ajax
//js:
encodeURIComponent(encodeURIComponent(con));
//java:
URLDecoder.decode(con,"UTF-8");
js: encodeURI(con)
java: java.net.URLDecoder.decode(con, "UTF-8")
2.
new String(con.getBytes("ISO-8859-1"), "UTF-8")
3.ajax
//js:
encodeURIComponent(encodeURIComponent(con));
//java:
URLDecoder.decode(con,"UTF-8");