diff --git a/Changelog b/Changelog index 7527119..d2187ae 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +Fix an encoding issue + 1.12.0 Add flag ACCEPT_NULL_DATES diff --git a/src/main/java/de/timroes/axmlrpc/XMLRPCClient.java b/src/main/java/de/timroes/axmlrpc/XMLRPCClient.java index 078819b..efcf0f4 100644 --- a/src/main/java/de/timroes/axmlrpc/XMLRPCClient.java +++ b/src/main/java/de/timroes/axmlrpc/XMLRPCClient.java @@ -660,7 +660,7 @@ public Object call(String methodName, Object[] params) throws XMLRPCException { authManager.setAuthentication(http); cookieManager.setCookies(http); - OutputStreamWriter stream = new OutputStreamWriter(http.getOutputStream()); + OutputStreamWriter stream = new OutputStreamWriter(http.getOutputStream(), "UTF-8"); stream.write(c.getXML(isFlagSet(FLAGS_DEBUG))); stream.flush(); stream.close();