diff options
author | rudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2004-08-04 12:13:22 +0000 |
---|---|---|
committer | rudolf <rudolf@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2004-08-04 12:13:22 +0000 |
commit | 0e1015514b0e02436a6863d7afe930008e9b6f26 (patch) | |
tree | 3ed3e85f94c622618d80e4918163ebfda8236a65 /id.server/src/at | |
parent | 2e2a20b7505db2bacfcc31c23c84a4b700c99187 (diff) | |
download | moa-id-spss-0e1015514b0e02436a6863d7afe930008e9b6f26.tar.gz moa-id-spss-0e1015514b0e02436a6863d7afe930008e9b6f26.tar.bz2 moa-id-spss-0e1015514b0e02436a6863d7afe930008e9b6f26.zip |
encode servlet response always UTF-8
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@162 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/src/at')
-rw-r--r-- | id.server/src/at/gv/egovernment/moa/id/auth/servlet/SelectBKUServlet.java | 7 |
1 files 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"); } |