import java.io.UnsupportedEncodingException;
public class Exchange
{
public static String toCN(String value)
{
try
{
String cn = new String(value.getBytes("ISO-8859-1"), "gbk");
return cn;
}
catch (UnsupportedEncodingException e)
{
e.printStackTrace();
return null;
}
}
}
public class Exchange
{
public static String toCN(String value)
{
try
{
String cn = new String(value.getBytes("ISO-8859-1"), "gbk");
return cn;
}
catch (UnsupportedEncodingException e)
{
e.printStackTrace();
return null;
}
}
}