title: URL is getting splitted at "[" square bracket
body: <p>This is a simple issue which I got stuck for hours now , the url is not taken completely, it is getting splitted as below:</p>
  
  <p><a href="https://i.stack.imgur.com/Am9LZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Am9LZ.jpg" alt="Image"></a></p>
  
  <p>This is what I am using in code:</p>
  
  <pre><code>  String Url1 = Myservice.S_DELETE_LIBRARY_BOOK+"["+bookData.get(position).getBookId()+"]"+"&amp;libraryId="+LibId+"&amp;userId="+Uid;
  
     //did encoding and decoding for testing
    try {
        Url1= URLEncoder.encode(Url1,"UTF-8");
      } catch (UnsupportedEncodingException e) {
          e.printStackTrace();
      }
      try {
          Url1 = URLDecoder.decode(Url1, "UTF-8");
      } catch (UnsupportedEncodingException e) {
          e.printStackTrace();
      }
  
    Log.d("LibraryAdapterUrl",""+Url1);
  </code></pre>
  
  <p>I also tried to encode and decode String but this did not work. I want the whole thing to be inside url.</p>
  
  <pre><code>[2]&amp;libraryId=1&amp;userId=4
  </code></pre>
  
  <p>That part is not considering as url, </p>
  
  <p>I even pasted all URLs instead of <code>Myservice.S_DELETE_LIBRARY_BOOK</code>, still it is getting splitted at [2] </p>
  
  <p>whole url is working fine in browser
  .What am i doing wrong?</p>