修改辦法:html
js:java
sql = encodeURI(encodeURI(sql));
servlet:sql
String sql = request.getParameter("sql"); sql = URLDecoder.decode(sql,"UTF-8");
參考文檔code
http://tech.sina.com.cn/s/2008-07-07/1053722241.shtmlhtm