title: getting string from byte array in different OS with Java
body: <p>I'm trying to convert a byte array in string with simple code:</p>
  
  <pre><code>System.out.printf("%s \n", new String(b));
  </code></pre>
  
  <p>where <code>b</code> has this content (in hex chars):</p>
  
  <blockquote>
    <p>32d001000001000000000000246d3639653331697769736374683134633439687763796c7862796f74697167786f786c7504696e666f0000010001</p>
  </blockquote>
  
  <p>If I run my code in Windows I get the entire decoded <code>String</code>, however in Linux it seems dropped until the null byte (00). If I skip these bytes the correct <code>String</code> in produced.</p>
  
  <p>How can I get the same result in Linux OS?
  Sorry but I can't attach image due to restriction :'(</p>
  
  <p>Thanks in advance!</p>