From: David ‘Bombe’ Roden Date: Thu, 26 Jul 2012 08:15:09 +0000 (+0200) Subject: Set encoding for all parameters to UTF-8, the one and only. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=83aef2bbd0de601c35a6aff01ef887e243ff4d33;p=demoscenemusic.git Set encoding for all parameters to UTF-8, the one and only. --- 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);