title: java request.getQueryString() value different between chrome and ie browser
body: <p>I have a request,In  Browser address bar enter:</p>
  
  <pre><code>http://localhost:8888/cmens-tops-outwear/t-b-f-a-c-s-fLoose-p-g-e-i-o.htm?'"--&gt;&lt;/style&gt;&lt;/script&gt;&lt;script&gt;netsparker(0x0000E1)&lt;/script&gt;=
  </code></pre>
  
  <p><code>Tomcat6.0.35</code> i have set <code>URIEncoding="UTF-8"</code> </p>
  
  <p>Use <code>request.getQueryString()</code> in servlet:</p>
  
  <p>if <code>chrome</code>,i get </p>
  
  <pre><code>'%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x0000E1)%3C/script%3E=
  </code></pre>
  
  <p>if <code>ie</code>,I get </p>
  
  <pre><code>'"--&gt;&lt;/style&gt;&lt;/script&gt;&lt;script&gt;netsparker(0x0000E1)&lt;/script&gt;=
  </code></pre>
  
  <p>Why?</p>
  
  <p><strong>Additional</strong></p>
  
  <p>I want to get <code>request.getQueryString()</code> to create a uri</p>
  
  <pre><code>URI uri = URI.create(url)
  </code></pre>
  
  <p>if ie:</p>
  
  <pre><code>java.net.URISyntaxException: Illegal character in query at index 36: /cmens/t-b-f-a-c-s-f-p-g-e-i-o.htm?'"--&gt;&lt;/style&gt;&lt;/script&gt;&lt;script&gt;netsparker(0x0000E1)&lt;/script&gt;
      at java.net.URI$Parser.fail(URI.java:2809)
      at java.net.URI$Parser.checkChars(URI.java:2982)
      at java.net.URI$Parser.parseHierarchical(URI.java:3072)
      at java.net.URI$Parser.parse(URI.java:3024)
      at java.net.URI.&lt;init&gt;(URI.java:578)
      at java.net.URI.create(URI.java:840)
  </code></pre>
  
  <p><strong>How to determine the queryString whether has be encoded?</strong></p>