From e9dc8c240f7f829403eb3013701797cf9212306b Mon Sep 17 00:00:00 2001 From: wbauer Date: Tue, 14 Oct 2008 14:32:39 +0000 Subject: Fixed a bug in the response charset git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@114 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BKUOnline/src/main/java/at') diff --git a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java index 9844a2aa..40a66de0 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java +++ b/BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java @@ -83,12 +83,12 @@ public class HashDataInputServlet extends SpringBKUServlet { for (HashDataInput hd : hdi) { if (hd.getReferenceId().equals(param)) { log.debug("Found hashdatainput for refId:" + param); - resp.setCharacterEncoding(hd.getEncoding()); resp.setContentType(hd.getMimeType()); String charSet = hd.getEncoding(); if (charSet == null) { charSet = "UTF-8"; } + resp.setCharacterEncoding(charSet); Reader r = new InputStreamReader(hd.getHashDataInput(), charSet); Writer w = new OutputStreamWriter(resp.getOutputStream(), charSet); StreamUtil.copyStream(r, w); -- cgit v1.2.3