byte[] ascii = {'d','e'}; //存放ascii的字节数组
new String(ascii , "ISO-8859-1");

解决方案 »

  1.   

    如果里面包含汉字如何处理
    如此转换汉字无法显示,如何将其转换成UTF8,UCS2编码呢???
      

  2.   

    用这个试试:
    System.out.println(new String("汉字".getBytes("ISO8859-1")."GB2312"))我想这样的话,你的汉字就能正常显示了
      

  3.   

    byte[] chr = {0xD6,0xD0,0xCE,};
      

  4.   

    byte[] chr = {0xD6,0xD0,0xCE,0xC4}; //中文GB2312码
    String ascii = new String(chr,"ISO-8859-1");//ASCII字串String chinese = new String(ascii.getByte("ISO-8859-1"),"GB2312");//中文字串.
      

  5.   

    有没有转换的原码。如何转换成UTF8格式