From 37553c60c9b4c98b7e696d6fbf01fae4ad84eb69 Mon Sep 17 00:00:00 2001 From: gregor Date: Mon, 26 Jun 2006 14:51:38 +0000 Subject: Content-Type Header korrekt gesetzt. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@715 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java | 2 +- .../egovernment/moa/spss/slinterface/servlets/HashInputDataServlet.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'spss.slinterface/src/at/gv/egovernment/moa/spss/slinterface') diff --git a/spss.slinterface/src/at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java b/spss.slinterface/src/at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java index 0ff14551f..d73dbdfd2 100644 --- a/spss.slinterface/src/at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java +++ b/spss.slinterface/src/at/gv/egovernment/moa/spss/slinterface/filters/SL2MOAFilter.java @@ -79,7 +79,7 @@ public class SL2MOAFilter implements Filter // it in the response JSP page has no effects at all. Perhaps any of the filters or the like already // writes to the response output stream. HttpServletResponse httpResponse = (HttpServletResponse) response; - httpResponse.setHeader("Content-Type", "text/html; charset='ISO-8859-1'"); + httpResponse.setHeader("Content-Type", "text/html; charset=ISO-8859-1"); // Create session HttpSession session = ((HttpServletRequest) request).getSession(true); diff --git a/spss.slinterface/src/at/gv/egovernment/moa/spss/slinterface/servlets/HashInputDataServlet.java b/spss.slinterface/src/at/gv/egovernment/moa/spss/slinterface/servlets/HashInputDataServlet.java index f7cfb7e6c..1f82540bb 100644 --- a/spss.slinterface/src/at/gv/egovernment/moa/spss/slinterface/servlets/HashInputDataServlet.java +++ b/spss.slinterface/src/at/gv/egovernment/moa/spss/slinterface/servlets/HashInputDataServlet.java @@ -73,7 +73,7 @@ public class HashInputDataServlet extends HttpServlet // Set content type boolean isSLXHTML = dataInfo.getIsSLXHTMLDocument(); - String contenType = (isSLXHTML) ? "text/html" : "application/octet-stream"; + String contenType = (isSLXHTML) ? "text/html;charset=utf-8" : "application/octet-stream"; response.setContentType(contenType); // Write content from temporary HID file to response OS -- cgit v1.2.3