用HttpServletRequest 获取参数值时,别忘记对中文的处理

来源:互联网 发布:c 语言的socket 编辑:程序博客网 时间:2024/06/03 07:50
HttpServletRequest request = ServletActionContext.getRequest();
String username = new String(request.getParameter("username").getBytes(
     "ISO8859-1"), "UTF-8");
原创粉丝点击