在get和post方法里加上以下代碼把request和response編碼格式改爲utf-8:
request.setCharacterEncoding(“utf-8”);
response.setContentType(“text/html;charset=utf-8”);
response.setCharacterEncoding(“utf-8”);
在get和post方法里加上以下代碼把request和response編碼格式改爲utf-8:
request.setCharacterEncoding(“utf-8”);
response.setContentType(“text/html;charset=utf-8”);
response.setCharacterEncoding(“utf-8”);