<%!
public String str2CN(String str)
{
try{
String temp1=str;
//byte[]  temp2=temp1.getBytes("ISO8859_1");
//String temp=new  String (temp2,"gb2312");
         
         //自己喜欢哪个字符集之间转变,自己修改
         byte[]  temp2=temp1.getBytes("UTF-8");
String temp=new  String (temp2,"GBK");
return temp;
}
catch(Exception Ex)
{
System.out.println("str2CN() Error:" + Ex.toString());
return null;
}
}
%>