因為get方式提交的參數編碼,只支持iso8859-1編碼:
所以在get到后要進行轉碼
String s = new String(request.getParameter("ss").getByBytes("iso8859-1"),"utf-8");
因為get方式提交的參數編碼,只支持iso8859-1編碼:
所以在get到后要進行轉碼
String s = new String(request.getParameter("ss").getByBytes("iso8859-1"),"utf-8");