From fc76cd4873192227919458bf9f2045f93dbc8125 Mon Sep 17 00:00:00 2001 From: Guillaume Turri Date: Fri, 4 Nov 2022 19:55:37 +0100 Subject: [PATCH] Fix #43 --- Changelog | 2 ++ src/main/java/de/timroes/axmlrpc/XMLRPCClient.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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();