你可以试一下在.jsp中直接用下面这个函数:<%!
//转换为中文(在浏览器中显示中文)
public String getStr(String str)
{
try
{
String temp_p=str;
byte[] temp_t=temp_p.getBytes("GBK");
String temp=new String(temp_t,"ISO8859_1");
return temp;
}
catch(Exception e)
{
e.printStackTrace();
}
return "null";
}
%>
//转换为中文(在浏览器中显示中文)
public String getStr(String str)
{
try
{
String temp_p=str;
byte[] temp_t=temp_p.getBytes("GBK");
String temp=new String(temp_t,"ISO8859_1");
return temp;
}
catch(Exception e)
{
e.printStackTrace();
}
return "null";
}
%>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货