title: html meta charset not working: get ISO-8859-1 while set UTF-8
body: <p>At the head of my page, i have the following code:</p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  </code></pre>
  
  <p>but i got the following response header:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  Content-Type: text/html;charset=ISO-8859-1
  Content-Length: 1885
  Date: Wed, 07 Oct 2015 03:02:50 GMT
  </code></pre>
  
  <p>And my page shows æ­£åœ¨ä¸Žå…¬ä¼—å·å¯¹è¯ instead of Chinese.</p>
  
  <p>Do u know why?</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>I just learned something of document encoding(in browser): The simplified priority for determining document encoding (in browser) is: (1) browser setting, (2) byte order mark (browser is able to determine encoding on its own), (3) HTTP header, (4) meta tag, (5) best guess.</p>
  
  <p>I guess charset property of meta tag doesn't effect HTTP header.</p>
  
  <p>then what is confusing for me is what effect HTTP header. And how can i set charset = utf-8 in HTTP header? </p>
  
  <p>============================ attach Codes==========================</p>
  
  <p>Below is code of HEAD in JSP page:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
          &lt;meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE" /&gt;
          &lt;title&gt;微信公众号&lt;/title&gt;
          &lt;!--讨论区滚动条begin--&gt;
          &lt;link rel="stylesheet" type="text/css" href="&lt;%= basePath %&gt;Resource/css/jscrollpane1.css" /&gt;
          &lt;script src="&lt;%= basePath %&gt;Resource/js/common/jquery-1.8.0.min.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;!-- the mousewheel plugin --&gt;
          &lt;script type="text/javascript" src="&lt;%= basePath %&gt;Resource/js/common/jquery.mousewheel.js"&gt;&lt;/script&gt;
          &lt;!-- the jScrollPane script --&gt;
          &lt;script type="text/javascript" src="&lt;%= basePath %&gt;Resource/js/common/jquery.jscrollpane.min.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="&lt;%= basePath %&gt;Resource/js/common/scroll-startstop.events.jquery.js"&gt;&lt;/script&gt;
          &lt;!--讨论区滚动条end--&gt;
          &lt;script type="text/javascript" src="&lt;%= basePath %&gt;Resource/js/front/talk.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
  </code></pre>
  
  <p>Servlet code is simply:</p>
  
  <pre><code>@WebServlet(name = "InitTalkServlet")
  public class InitTalkServlet extends HttpServlet {
      protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          doGet(request,response);
      }
  
      protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
          //        设置编码
          request.setCharacterEncoding("UTF-8");
  
  //        页面跳转
          request.getRequestDispatcher("/WEB-INF/JSP/FRONT/talk.jsp").forward(request,response);
      }
  }
  </code></pre>