title: setContentType and !DOCTYPE tag
body: <p>I am doing some java code as:</p>
  
  <blockquote>
    <p>PrintWriter writer = null;
                 response.setContentType("text/html;charset=UTF-8");</p>
  </blockquote>
  
  <pre><code>         try {
               writer = response.getWriter();
           }
           catch (IOException e){
               e.printStackTrace();
           }
  
           if (userValue != null){
               userValue = getRandInt(userValue);
               writer.println("&lt;!DOCTYPE html&gt;");
           }
  </code></pre>
  
  <p>Should I write <code>writer.println("&lt;!DOCTYPE html&gt;");</code></p>
  
  <p>if I use <code>response.setContentType("text/html;charset=UTF-8");</code>?</p>
  
  <p>Thanks</p>