doGet和doPOST中的乱码解决

  doGet中的乱码解决:post // 获取请求参数 String username = req.getParameter("username"); //1 先以 iso8859-1 进行编码 //2 再以 utf-8 进行解码 username = new String(username.getBytes("iso-8859-1"), "UTF-8")  编码 doPost中的乱码解决:ut
相关文章
相关标签/搜索