diff --git a/src/oca/java/src/org/opennebula/client/OneSystem.java b/src/oca/java/src/org/opennebula/client/OneSystem.java index 6122e11925..f88d869cf7 100644 --- a/src/oca/java/src/org/opennebula/client/OneSystem.java +++ b/src/oca/java/src/org/opennebula/client/OneSystem.java @@ -101,7 +101,7 @@ public class OneSystem DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse( - new ByteArrayInputStream(r.getMessage().getBytes())); + new ByteArrayInputStream(r.getMessage().getBytes("UTF-8"))); xml = doc.getDocumentElement(); } @@ -140,7 +140,7 @@ public class OneSystem DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse( - new ByteArrayInputStream(r.getMessage().getBytes())); + new ByteArrayInputStream(r.getMessage().getBytes("UTF-8"))); xml = doc.getDocumentElement(); } @@ -190,7 +190,7 @@ public class OneSystem DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse( - new ByteArrayInputStream(r.getMessage().getBytes())); + new ByteArrayInputStream(r.getMessage().getBytes("UTF-8"))); xml = doc.getDocumentElement(); } diff --git a/src/oca/java/src/org/opennebula/client/Pool.java b/src/oca/java/src/org/opennebula/client/Pool.java index ec4362df87..f8baeb055f 100644 --- a/src/oca/java/src/org/opennebula/client/Pool.java +++ b/src/oca/java/src/org/opennebula/client/Pool.java @@ -190,7 +190,7 @@ public abstract class Pool{ builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); doc = builder.parse( - new ByteArrayInputStream(info.getMessage().getBytes())); + new ByteArrayInputStream(info.getMessage().getBytes("UTF-8"))); xml = doc.getDocumentElement(); poolElements = (NodeList) xpath.evaluate(elementName, xml, XPathConstants.NODESET); diff --git a/src/oca/java/src/org/opennebula/client/PoolElement.java b/src/oca/java/src/org/opennebula/client/PoolElement.java index d86bc9388a..2f55d732b0 100644 --- a/src/oca/java/src/org/opennebula/client/PoolElement.java +++ b/src/oca/java/src/org/opennebula/client/PoolElement.java @@ -93,7 +93,7 @@ public abstract class PoolElement { DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse( - new ByteArrayInputStream(info.getMessage().getBytes())); + new ByteArrayInputStream(info.getMessage().getBytes("UTF-8"))); xml = doc.getDocumentElement(); }