title: How to do URL decoding in Java?
body: <p><strong>In Java, I want to convert this:</strong></p>
  
  <pre><code>https%3A%2F%2Fmywebsite%2Fdocs%2Fenglish%2Fsite%2Fmybook.do%3Frequest_type
  </code></pre>
  
  <p><strong>To this:</strong></p>
  
  <pre><code>https://mywebsite/docs/english/site/mybook.do&amp;request_type
  </code></pre>
  
  <p><strong>This is what I have so far:</strong></p>
  
  <pre><code>class StringUTF 
  {
      public static void main(String[] args) 
      {
          try{
              String url = 
                 "https%3A%2F%2Fmywebsite%2Fdocs%2Fenglish%2Fsite%2Fmybook.do" +
                 "%3Frequest_type%3D%26type%3Dprivate";
  
              System.out.println(url+"Hello World!-------&gt;" +
                  new String(url.getBytes("UTF-8"),"ASCII"));
          }
          catch(Exception E){
          }
      }
  }
  </code></pre>
  
  <p>But it doesn't work right.  What are these <code>%3A</code> and <code>%2F</code> formats called and how do I convert them?</p>