Set encoding for all parameters to UTF-8, the one and only.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jul 2012 08:15:09 +0000 (10:15 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 26 Jul 2012 08:15:09 +0000 (10:15 +0200)
src/main/java/net/pterodactylus/demoscenemusic/core/TemplateServlet.java

index cfef6dd..def7ea1 100644 (file)
@@ -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);