From c7f275a3caa003653ef654fe2a62f84815879e49 Mon Sep 17 00:00:00 2001 From: rudolf Date: Mon, 28 Jun 2004 20:37:27 +0000 Subject: added default platform logging; added charset in ContentType (RSCH) git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@137 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../src/at/gv/egovernment/moa/id/auth/servlet/SelectBKUServlet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'id.server/src/at/gv/egovernment/moa/id') diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/SelectBKUServlet.java b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/SelectBKUServlet.java index a41f4be05..c73f963e1 100644 --- a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/SelectBKUServlet.java +++ b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/SelectBKUServlet.java @@ -37,6 +37,7 @@ public class SelectBKUServlet extends AuthServlet { try { super.init(servletConfig); MOAIDAuthInitializer.initialize(); + Logger.debug("default platform file.encoding: " + System.getProperty("file.encoding")); Logger.info(MOAIDMessageProvider.getInstance().getMessage("init.00", null)); } catch (Exception ex) { @@ -73,13 +74,14 @@ public class SelectBKUServlet extends AuthServlet { if (bkuSelectionType.equals(AuthConfigurationProvider.BKU_SELECTION_TYPE_HTMLCOMPLETE)) { // bkuSelectionType==HTMLComplete String redirectURL = returnValue; + resp.setContentType("text/html"); resp.sendRedirect(redirectURL); Logger.info("REDIRECT TO: " + redirectURL); } else { // bkuSelectionType==HTMLSelect String htmlForm = returnValue; - resp.setContentType("text/html"); + resp.setContentType("text/html;charset=UTF-8"); Logger.debug("HTML-Form: " + htmlForm); PrintWriter out = new PrintWriter(resp.getOutputStream()); out.print(htmlForm); -- cgit v1.2.3