试下用<%
public String getStr(String str)
{
try
{
String temp_t=str;
byte[] temp_p=temp_t.getBytes("ISO8859_1");
String temp=new String(temp_t);
return temp;
}
catch(Exception e)
{
}
return "null";
}
%><%
??=getStr(request.getParameter(??));
然后写进数据库...%>