decode encode between String and byte in java

Posted by seven on Stack Overflow See other posts from Stack Overflow or by seven
Published on 2010-04-14T05:51:16Z Indexed on 2010/04/14 5:52 UTC
Read the original article Hit count: 213

Filed under:

System.out.println(Arrays.toString(new String(bytes, "UTF-8").getBytes("UTF-8"))); System.out.println(Arrays.toString(new String(bytes, "ISO-8859-1").getBytes("ISO-8859-1")));

output: [1, -17, -65, -67] [1, -1] why???

© Stack Overflow or respective owner

Related posts about java