关键代码:
String str=request.getParameter("name");
byte a[]=str.getBytes("ISO-8859-1");
str=new String(a);
或者简写:
str=new String(request.GetParamenter("name").getBytes("ISO-8859-1"));
关键代码:
String str=request.getParameter("name");
byte a[]=str.getBytes("ISO-8859-1");
str=new String(a);
或者简写:
str=new String(request.GetParamenter("name").getBytes("ISO-8859-1"));