From 8190d3992d831373e8d35b9883408d9ee09330dc Mon Sep 17 00:00:00 2001 From: rudolf Date: Mon, 28 Jun 2004 20:38:51 +0000 Subject: added charset in ContentType (RSCH) git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@139 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java | 2 +- .../gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java index 6308742bf..6098f5138 100644 --- a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java +++ b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/StartAuthenticationServlet.java @@ -58,7 +58,7 @@ public class StartAuthenticationServlet extends AuthServlet { try { String getIdentityLinkForm = AuthenticationServer.getInstance().startAuthentication(authURL, target, oaURL, templateURL, bkuURL, sessionID); - resp.setContentType("text/html"); + resp.setContentType("text/html;charset=UTF-8"); PrintWriter out = new PrintWriter(resp.getOutputStream()); out.print(getIdentityLinkForm); out.flush(); diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java index 00ec57e83..8253c804d 100644 --- a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java +++ b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java @@ -79,7 +79,9 @@ public class VerifyIdentityLinkServlet extends AuthServlet { String dataURL = new DataURLBuilder().buildDataURL( session.getAuthURL(), AuthenticationServer.REQ_VERIFY_AUTH_BLOCK, sessionID); resp.addHeader("Location", dataURL); - resp.setContentType("text/xml"); + + //TODO test impact of explicit setting charset with older versions of BKUs (HotSign) + resp.setContentType("text/xml;charset=UTF-8"); // debug output if(null != createXMLSignatureRequest) OutputXML2File.debugOutputXML2File("CreateXMLSignatureRequest.xml", createXMLSignatureRequest, MOAIDAuthConstants.DEBUG_OUTPUT_HIERARCHY); -- cgit v1.2.3