`
andrew.yulong
  • 浏览: 166711 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

转换字节码

    博客分类:
  • java
阅读更多

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;
    }
  }
}

 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics