sanity fixes about the encodingY
[pnews.git] / war / src / main / java / pnews / servlet / Pnews.java
index 662b47c..8a98571 100644 (file)
@@ -89,6 +89,7 @@ public class Pnews extends HttpServlet {
                                 html = HTML.toHTML(articles, cat);
                                 rp.setContentType("text/html");
                                 rp.getWriter().write(html);
+                                rp.setCharacterEncoding("UTF-8");
                         } else {
                                 LOG.severe("writeArticles cannot retrieve any articles");
                                 html = HTML.toHTML(new ArrayList<Article>(), cat);