java.lang.String.getBytes() has platform-dependent semantics

Change-Id: Ia36e73215f666a26e5898310aabefb68d3f695c2
This commit is contained in:
Stephan Bergmann
2013-09-20 14:13:49 +02:00
parent f1b2c51857
commit 89e5ef9485

View File

@@ -2706,7 +2706,7 @@ public class DOMTest
"<xlink:test/>" +
"<office:automatic-styles teststyle=\"test\"/>" +
"<moretest/>" +
"some text \303\266\303\244\303\274" +
"some text \uC3B6\uC3A4\uC3BC" +
"</office:document-content>";
XDocumentBuilder xBuilder =
@@ -2714,7 +2714,7 @@ public class DOMTest
m_xMSF.createInstance("com.sun.star.xml.dom.DocumentBuilder"));
XInputStream xIn =
SequenceInputStream.createStreamFromSequence(m_xContext, file.getBytes());
SequenceInputStream.createStreamFromSequence(m_xContext, file.getBytes("UTF-8"));
XDocument xDoc =
xBuilder.parse(xIn);