From 83aef2bbd0de601c35a6aff01ef887e243ff4d33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 26 Jul 2012 10:15:09 +0200 Subject: [PATCH] Set encoding for all parameters to UTF-8, the one and only. --- src/main/java/net/pterodactylus/demoscenemusic/core/TemplateServlet.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/pterodactylus/demoscenemusic/core/TemplateServlet.java b/src/main/java/net/pterodactylus/demoscenemusic/core/TemplateServlet.java index cfef6dd..def7ea1 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/core/TemplateServlet.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/core/TemplateServlet.java @@ -149,6 +149,7 @@ public class TemplateServlet extends HttpServlet { */ @Override protected void doGet(HttpServletRequest request, HttpServletResponse httpServletResponse) throws ServletException, IOException { + request.setCharacterEncoding("UTF-8"); String path = request.getPathInfo(); if (path.startsWith("/")) { path = path.substring(1); -- 2.7.4