public static String GBToBIG(String strIn)
{
byte[] b;
String strOut=null;
if(strIn==null||(strIn.trim()).equals(""))return strIn;
try
{
b=strIn.getBytes("BIG5");
strOut=new String(b,"GBK");
}
catch(Exception e){}
return strOut;
}
{
byte[] b;
String strOut=null;
if(strIn==null||(strIn.trim()).equals(""))return strIn;
try
{
b=strIn.getBytes("BIG5");
strOut=new String(b,"GBK");
}
catch(Exception e){}
return strOut;
}
解决方案 »
- jstl遍历问题
- ms sql数据库如何转换成my sql数据库
- jms启动报错:java.lang.OutOfMemoryError
- 【hibernate】超级简单查询问题,解答立马给分!!!!!!!!
- 神奇的java,有什么方法能够方便的调用DataSet
- 客户端调用EJB时报Receive timed out异常?
- 【高分急问】axis发送附件,soap中的resopnse应该是什么类型的?
- 刚入职做初级程序员,通常要做些什么?
- 怎样把一个xml发送出去呢
- easiui中centre中的页面无法加载js文件。
- 在安装Sun的petStore1.3.2的时候出现了以下错误,请帮忙。
- 关于java在Solaris9执行的速度问题.
s=new String(s.getBytes("ISO8859-1"));