From 0e1015514b0e02436a6863d7afe930008e9b6f26 Mon Sep 17 00:00:00 2001 From: rudolf Date: Wed, 4 Aug 2004 12:13:22 +0000 Subject: encode servlet response always UTF-8 git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@162 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../at/gv/egovernment/moa/id/auth/servlet/SelectBKUServlet.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 c73f963e1..50d3225d2 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 @@ -1,7 +1,8 @@ package at.gv.egovernment.moa.id.auth.servlet; import java.io.IOException; -import java.io.PrintWriter; +import java.io.OutputStreamWriter; +import java.io.Writer; import javax.servlet.ServletConfig; import javax.servlet.ServletException; @@ -83,8 +84,8 @@ public class SelectBKUServlet extends AuthServlet { String htmlForm = returnValue; resp.setContentType("text/html;charset=UTF-8"); Logger.debug("HTML-Form: " + htmlForm); - PrintWriter out = new PrintWriter(resp.getOutputStream()); - out.print(htmlForm); + Writer out = new OutputStreamWriter(resp.getOutputStream(), "UTF8"); + out.write(htmlForm); out.flush(); Logger.debug("Finished GET SelectBKU"); } -- cgit v1.2.3