//显示
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";
}
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";
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货