0
如何在字符集utf-8中上傳文件和值?JSP + Servlet +多部分/表單數據格式UTF-8
request.setCharacterEncoding("UTF-8");
response.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
out.print("NAME iS: " + mrequest.getParameter("name"));
輸出:
بÙاخبÛتاخØ