title: In JSP, how can I get GET parameters using utf8 encoding?
body: <p>I am using <strong>GlassFish 4</strong>, and my JSP file is simple: </p>
  
  <pre><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
          &lt;title&gt;JSP Page&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;%= request.getParameter("a") %&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my request <code>GET index.jsp?a=历史</code>, and the output is:</p>
  
  <pre><code>åå² 
  </code></pre>
  
  <p>What's wrong with it?</p>