public static String from8859(String source)
{
if(source == null)
return null;
String s1;
try
{
String s = new String(source.getBytes("iso-8859-1"),"gbk");
String s2 = s;
return s2;
}
catch(Exception uee)
{
s1 = null;
}
String s3 = s1;
return s3;
}
//往数据写入时用to8859()
public static String to8859(String source)
{
if(source == null)
return null;
String s1;
try
{
String s = new String(source.getBytes("gbk"), "iso-8859-1");
String s2 = s;
return s2;
}
catch(Exception uee)
{
s1 = null;
}
String s3 = s1;
return s3;
}