在WEB頁面中, 正確地傳遞顯示中文, 可以把Request和Response的編碼設爲UTF-8, 如下:
throws ServletException, IOException
{
...
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html; charset=UTF-8");
...
}
在WEB頁面中, 正確地傳遞顯示中文, 可以把Request和Response的編碼設爲UTF-8, 如下: