diff options
author | wbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-10-14 14:32:39 +0000 |
---|---|---|
committer | wbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-10-14 14:32:39 +0000 |
commit | e9dc8c240f7f829403eb3013701797cf9212306b (patch) | |
tree | 06d25115bba2452002038874476690509f1fba4e /BKUOnline/src/main/java/at | |
parent | 2ff289b52c53a5893072f3aa3820fba29992e8f5 (diff) | |
download | mocca-e9dc8c240f7f829403eb3013701797cf9212306b.tar.gz mocca-e9dc8c240f7f829403eb3013701797cf9212306b.tar.bz2 mocca-e9dc8c240f7f829403eb3013701797cf9212306b.zip |
Fixed a bug in the response charset
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@114 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUOnline/src/main/java/at')
-rw-r--r-- | BKUOnline/src/main/java/at/gv/egiz/bku/online/webapp/HashDataInputServlet.java | 2 |
1 files changed, 1 insertions, 1 deletions
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);
|