title: Issue with Encoding base64 in PHP and Decoding base64 in Java
body: <p>A string-"gACA" encoded  in PHP using base64. Now I'm trying to decode in java using base64. But getting absurd value after decoding. I have tried like this:</p>
  
  <pre><code>public class DecodeString{
  {
        public static void main(String args[]){
        String strEncode = "gACA";   //gACA is encoded string in PHP
        byte byteEncode[] = com.sun.org.apache.xerces.internal.impl.dv.util.Base64.decode(strEncode );
        System.out.println("Decoded String" + new String(k, "UTF-8"));
        }
   }
  </code></pre>
  
  <p>Output:
       <code>??</code></p>
  
  <p>Please help me out</p>