title: Submitting POST form data in UTF -8
body: <p>I have a form in which the user enters his name in Chinese, but when I do</p>
  
  <pre><code>String strName = request.getParameter("name");
  </code></pre>
  
  <p>I get strName as some meaningless characters. As a solution I tried</p>
  
  <pre><code>request.setCharacterEncoding("UTF-8");
  </code></pre>
  
  <p>before reading any parameters from the request object. <strong>This worked</strong>. What I want to know is how do I achieve this in <strong>HTML/javascript</strong> . I have tried the </p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  </code></pre>
  
  <p>but this doesn't work . Any help?</p>