URLEncoder.encode("中文字".toString(),"utf-8") //如果不行就编码两次
先将中文用utf-8编码,然后在接收端用utf-8解码
URLDecoder.decode(request.getParameter("word"), "utf-8");
URLEncoder.encode("中文字".toString(),"utf-8") //如果不行就编码两次
先将中文用utf-8编码,然后在接收端用utf-8解码
URLDecoder.decode(request.getParameter("word"), "utf-8");