提交 03589ab6 authored 作者: Thomas Mueller's avatar Thomas Mueller

When using the H2 Console as a web application, special characters are encoded wrong

上级 4947fb34
...@@ -81,6 +81,7 @@ public class WebServlet extends HttpServlet { ...@@ -81,6 +81,7 @@ public class WebServlet extends HttpServlet {
} }
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
req.setCharacterEncoding("utf-8");
String file = req.getPathInfo(); String file = req.getPathInfo();
if (file == null) { if (file == null) {
resp.sendRedirect(req.getRequestURI() + "/"); resp.sendRedirect(req.getRequestURI() + "/");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论