title: EncodeURIComponent equivalent in android
body: <pre><code>&lt;script&gt;
      var data = {};
      data.email    = "abc@gmail.com";
      data.password = "123abc";
      data.mobile = "1234567890";
      data = encodeURIComponent(window.btoa(JSON.stringify(data)));
      console.log(data);
  &lt;/script&gt;
  </code></pre>
  
  <p>Output : eyJlbWFpbCI6InNqc2hpdjA0MDNAZ21haWwuY29tIiwicGFzc3dvcmQiOiJiaHV3YW45OTc2IiwibW9iaWxlIjoiODgyMzg0MTU1NCJ9</p>
  
  <p>I need <em>encodeURIComponent(window.btoa(JSON.stringify(data)))</em> equivalent in android. You can check this piece' output in console. Thank you in advance</p>