title: Does php urlencode the same with java urlencode?
body: <p>In PHP：</p>
  
  <pre><code>php -r "echo urlencode('["IM"]'); "  
  </code></pre>
  
  <p>The result is <code>%5BIM%5D</code></p>
  
  <p>But in java </p>
  
  <pre><code>String text = URLEncoder.encode('["IM"]',"UTF-8");
  System.out.println("text" + text);
  </code></pre>
  
  <p>The result is <code>text%5B%22IM%22%5D</code></p>
  
  <p>What's the different between these two functions? How can I implement a java code to complete the same function of php?</p>