String str ="gbk编码格式"; String iso = new String(str.getBytes("UTF-8"),"ISO-8859-1"); System.out.println("UTF-89格式:"+iso);