title: Convert Byte String to alpha-numeric char array in java?
body: <p>My question is, I guess, quite simple : </p>
  
  <p>How to convert a Byte to alpha-numeric char array (String) in java ?</p>
  
  <p>I tried this but it gives me back an error on netbeans : </p>
  
  <pre><code> byte[] b = "test".getBytes("ASCII");
   String test = new String(b,"ASCII");
  </code></pre>
  
  <p>UPDATE : 
  I am actually using this code : </p>
  
  <pre><code>    byte[] b = "test".getBytes("ASCII");
      MessageDigest md = MessageDigest.getInstance("SHA-256");
      String bla = new String(md.digest(b), "ASCII");
  </code></pre>
  
  <p>But once I try to use for other stuff which requires String with ASCII, I receive the following errors like "This is not ASCII". 
  I don't really understand, actually.</p>
  
  <p>When I try to print it I got something weird like "2Q�h/�k�����"</p>
  
  <p>Thank you in advance for your help.</p>