diff --git a/src/test/java/org/mustangproject/ZUGFeRD/MustangReaderWriterCustomXMLTest.java b/src/test/java/org/mustangproject/ZUGFeRD/MustangReaderWriterCustomXMLTest.java index 72f9285b..42c1a118 100644 --- a/src/test/java/org/mustangproject/ZUGFeRD/MustangReaderWriterCustomXMLTest.java +++ b/src/test/java/org/mustangproject/ZUGFeRD/MustangReaderWriterCustomXMLTest.java @@ -27,6 +27,7 @@ import org.junit.runners.MethodSorters; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; +import java.nio.charset.StandardCharsets; @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class MustangReaderWriterCustomXMLTest extends TestCase { @@ -64,7 +65,7 @@ public class MustangReaderWriterCustomXMLTest extends TestCase { /* we have much more information than just in the basic profile (comfort or extended) but it's perfectly valid to provide more information, just not less. * test the export with bom (which is valid) because this will also test the import (which also needs to work and needs to be tested) * */ - String ownZUGFeRDXML = new String(UTF8ByteOrderMark) + "\n" + + String ownZUGFeRDXML = new String(UTF8ByteOrderMark, StandardCharsets.UTF_8) + "\n" + "\n" + " \n" + " false\n" +