title: Java Convert Asn.1 byte Array in convienient String for Browser
body: <p>I try to convert a ASN.1 Byte Array into a String with Java. My results up to now:</p>
  
  <pre><code>byte[] asn = ocspResponse.getEncoded();
  String liccert = new String(asn, "Cp850");
  </code></pre>
  
  <p>This String contains some String artifakts which are very disturbing:</p>
  
  <p>Like this: </p>
  
  <pre><code>4¦20110416173611Z0üÏ0üi0:0  
  </code></pre>
  
  <p>Is there a way to convert the byte Array like this: </p>
  
  <pre><code>RFMRIwEAYDVQQIEwlsb2NhbGhvc3QxFDASBgNV?
  </code></pre>