From d0335a9bd7590c349ac92023f4b65e69c65de030 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 27 Oct 2016 13:37:17 +0200 Subject: [PATCH] Use UTF-8 as the standard output Do not rely on environment-specific encoding, but always use UTF-8 as the target encoding. Change-Id: I540fed7611ec66ae2aaeec3b86e21af7376208b9 Signed-off-by: Robert Varga --- .../nettyutil/handler/NetconfMessageToXMLEncoder.java | 3 ++- .../controller/sal/restconf/impl/test/TestUtils.java | 8 +++++--- .../netconf/sal/rest/doc/impl/ApiDocServiceImpl.java | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/NetconfMessageToXMLEncoder.java b/netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/NetconfMessageToXMLEncoder.java index 52d621dd08..608f199829 100644 --- a/netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/NetconfMessageToXMLEncoder.java +++ b/netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/NetconfMessageToXMLEncoder.java @@ -16,6 +16,7 @@ import io.netty.handler.codec.MessageToByteEncoder; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; +import java.nio.charset.StandardCharsets; import javax.xml.transform.TransformerException; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; @@ -52,7 +53,7 @@ public class NetconfMessageToXMLEncoder extends MessageToByteEncoder entry : MountPointSwagger.getInstance() -- 2.36.6