# HG changeset patch # User Mike Becker # Date 1606299182 -3600 # Node ID e2d09cf3fb96a3113484e796aace1c2e1befa0ae # Parent 86b5d8a1662f7f2199f0d7cb03c2d1f8c22d4b0f forces the use of utf-8 as request character encoding - fixes #108 diff -r 86b5d8a1662f -r e2d09cf3fb96 src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java --- a/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java Thu Nov 19 13:58:54 2020 +0100 +++ b/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java Wed Nov 25 11:13:02 2020 +0100 @@ -405,6 +405,8 @@ } private void doProcess(HttpMethod method, HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + // the very first thing to do is to force UTF-8 + req.setCharacterEncoding("UTF-8"); // choose the requested language as session language (if available) or fall back to english, otherwise HttpSession session = req.getSession();