@@ -41,6 +41,7 @@ public class IndexServlet extends HttpServlet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response.setCharacterEncoding("UTF-8");
|
response.setCharacterEncoding("UTF-8");
|
||||||
|
response.setContentType("text/html;charset=UTF-8");
|
||||||
try {
|
try {
|
||||||
template.process("index.html", model, response.getWriter());
|
template.process("index.html", model, response.getWriter());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public class TemplateServlet extends HttpServlet {
|
|||||||
model.put("rutext", "Поиск кино по пиратским кинотеатрам");
|
model.put("rutext", "Поиск кино по пиратским кинотеатрам");
|
||||||
|
|
||||||
resp.setCharacterEncoding("UTF-8");
|
resp.setCharacterEncoding("UTF-8");
|
||||||
|
resp.setContentType("text/html;charset=UTF-8");
|
||||||
try {
|
try {
|
||||||
template.process("simple_template" + fileName, model, resp.getWriter());
|
template.process("simple_template" + fileName, model, resp.getWriter());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user