diff --git a/mustang/pom.xml b/mustang/pom.xml index d7686705..9d09a237 100644 --- a/mustang/pom.xml +++ b/mustang/pom.xml @@ -3,7 +3,7 @@ com.github.rayman2200 mustang-sample-project - 1.2.1-SNAPSHOT + 1.3.0-SNAPSHOT org.mustangproject.ZUGFeRD diff --git a/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java b/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java index 5e79f159..123ab278 100644 --- a/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java +++ b/mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java @@ -72,7 +72,7 @@ public class ZUGFeRDExporter { jaxbContext = JAXBContext.newInstance("org.mustangproject.ZUGFeRD.model"); marshaller = jaxbContext.createMarshaller(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); - marshaller.setProperty("jaxb.encoding", "UTF-8"); + marshaller.setProperty(Marshaller.JAXB_ENCODING, "UTF-8"); } private class LineCalc { @@ -749,7 +749,7 @@ public class ZUGFeRDExporter { // create a dummy file stream, this would probably normally be a // FileInputStream - byte[] zugferdRaw = getZugferdXMLForTransaction(trans).getBytes("UTF-8"); //$NON-NLS-1$ + byte[] zugferdRaw = getZugferdXMLForTransaction(trans).getBytes(); //$NON-NLS-1$ if ((zugferdRaw[0] == (byte) 0xEF) && (zugferdRaw[1] == (byte) 0xBB) && (zugferdRaw[2] == (byte) 0xBF)) { // I don't like BOMs, lets remove it