I have the following code: byte[] b = new byte[len]; //len is preset to 157004 in this example //fill b with data by reading from a socket String pkt = new String(b); System.out.println(b.length + " " + pkt.length()); This prints out two different values on Ubuntu; 157004 and 147549, but the same values on OS [...]
The post String constructor differences between operating systems appeared first on BlogoSfera.