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
相關文章
相關標籤/搜索