From 989c26adb86ca2ad7a6c377ef2a72472252c83d4 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 15 Oct 2014 10:40:17 +0200 Subject: Fixed charset setting to UTF-8 #47 --- pdf-as-lib/src/main/java/at/gv/egiz/sl/util/BKUSLConnector.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/sl') 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); -- cgit v1.2.3