diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-10-15 10:40:17 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-10-15 10:40:17 +0200 |
commit | 989c26adb86ca2ad7a6c377ef2a72472252c83d4 (patch) | |
tree | 8b96612d96c77db66bb092fd90e895580888e229 /pdf-as-lib/src/main/java/at/gv/egiz | |
parent | 3e96eedd7b1daca1d4ee02f21d9221cbbc288478 (diff) | |
download | pdf-as-4-989c26adb86ca2ad7a6c377ef2a72472252c83d4.tar.gz pdf-as-4-989c26adb86ca2ad7a6c377ef2a72472252c83d4.tar.bz2 pdf-as-4-989c26adb86ca2ad7a6c377ef2a72472252c83d4.zip |
Fixed charset setting to UTF-8 #47
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz')
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java index bffb2974..a152dcf6 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java @@ -26,6 +26,7 @@ package at.gv.egiz.sl.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; +import java.nio.charset.Charset; import javax.xml.bind.JAXBElement; import javax.xml.bind.JAXBException; @@ -77,6 +78,7 @@ public class BKUSLConnector extends BaseSLConnector { MultipartEntityBuilder entityBuilder = MultipartEntityBuilder .create(); + entityBuilder.setCharset(Charset.forName("UTF-8")); entityBuilder.addTextBody(XMLREQUEST, xmlRequest, ContentType.TEXT_XML); |