请求时处理乱码
request.setCharacterEndoing("utf-8");
String name=request.gerParameter("name");
但假如这样还没用
name =new String(name.getBytes("ISO-8859-1"),"UTG-8");便可以
响应时处理乱码
response.setCharacterEndoing("utf-8");
request.setCharacterEndoing("utf-8");
String name=request.gerParameter("name");
但假如这样还没用
name =new String(name.getBytes("ISO-8859-1"),"UTG-8");便可以
response.setCharacterEndoing("utf-8");