|
最初由 qiaoyu 发布
[B]用上这段应该没问题的
<%!
// 解决中文参数的问题
public String getStr(String str)
{
try
{
String temp_p = str;
byte[] temp_t = temp_p.getBytes("ISO8859-1" ;
String temp = new String(temp_t);
return temp;
}
catch(Exception e)
{
}
return "null";
}
%> [/B]
你这个方法我经常用,非常的灵 |
|