//显示
public String getDatabaseChar(String str)
{
try
{
String temp_p=str;
byte[] temp_t=temp_p.getBytes("ISO-8859-1");
String temp=new String(temp_t);
return temp;
}
catch(Exception e)
{
System.out.println(e.getMessage());
}
return "null";
}
//写库
public String getPageChar(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)
{
System.out.println(e.getMessage());
}
return "null";
}