title: Get raw byte-array from string
body: <p>My question is if there is any short way to convert a String to a byte-Array using standard java-library-functions? The "string" does have <strong>NO ENCODING</strong>, the string itself is a string for no reason, but it is the way I get it. I did not code it myself and I cannot change it, but I have to deal with it. A standard <code>String.getBytes()</code> will not work because some values always get "?"-ed out and make the underlying binary-data obviously useless. </p>
  
  <p>Any ideas?</p>
  
  <p>It's basically the same question as here: <a href="https://stackoverflow.com/questions/472906/how-do-i-get-a-consistent-byte-representation-of-strings-in-c-sharp-without-manu">How do I get a consistent byte representation of strings in C# without manually specifying an encoding?</a> but instead of C# for Java. I searched quite some time but I couldn't find any fitting solution. </p>
  
  <p>Thanks in advance.</p>