title: JSP Character Encoding
body: <p>i have a problem with character encoding in my jsp file.
  Im using data out of a database and the database got the data
  from a xml file.</p>
  
  <ul>
  <li>char encoding of xml-file is utf-8</li>
  <li>char encoding of database is utf-8</li>
  <li><p>char encoding of jsp is utf-8</p>
  
  <pre><code>&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%&gt;
  &lt;%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%&gt;
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  
  &lt;head&gt;
      &lt;link href="../css/movies.css" type="text/css" rel="stylesheet"&gt;
      &lt;title&gt;Movies&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div id="wrapper"&gt;
  
          &lt;br&gt;&lt;/br&gt;
          &lt;h2 id="title"&gt;Movies&lt;/h2&gt;
          &lt;br&gt;&lt;/br&gt;
  
          &lt;ul&gt;
              &lt;c:forEach var="movie" items="${requestScope.movies}"&gt;
                  &lt;li id="listElement"&gt;&lt;a class="listElementLink" href="../servlets/SingleMovieServlet?id=${movie.movieID}"&gt;${movie.title}&lt;/a&gt;&lt;/li&gt;
              &lt;/c:forEach&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre></li>
  </ul>
  
  <p>The output doesnt seem to be utf-8 because i get for example this title:</p>
  
  <pre><code>KÃ¶nigskinder
  </code></pre>
  
  <p>This should be:</p>
  
  <pre><code> Königskinder
  </code></pre>
  
  <p>Also i have the problem that if i have a title like this:</p>
  
  <pre><code>Pirates of the Caribbean: Dead Man&amp;apos;s Chest
  </code></pre>
  
  <p>The output is just:</p>
  
  <pre><code>s Chest
  </code></pre>
  
  <p>How can i get my encoding working?</p>