Skip to content

Commit

Permalink
Netflix#509 added explicit utf8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
yonatang committed Feb 12, 2021
1 parent 8baf3cc commit 835b99e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public boolean serveRequest(String pageName, HttpServletRequest req, HttpServlet
return true;
}

resp.setContentType("text/html");
resp.setContentType("text/html;charset=UTF-8");

if("".equals(pageName) || "overview".equals(pageName)) {
render(overviewPage, req, resp);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public boolean handle(String target, HttpServletRequest req, HttpServletResponse
return true;
}

resp.setContentType("text/html");
resp.setContentType("text/html;charset=UTF-8");


if("resource".equals(pageName)) {
Expand Down

0 comments on commit 835b99e

Please sign in to comment.