From d3254b0951e780dea12d77802d7480edb837ac03 Mon Sep 17 00:00:00 2001 From: asdf00000 <56080856+asdf00000@users.noreply.github.com> Date: Thu, 24 Jul 2025 10:16:18 +0200 Subject: [PATCH] fix encoding error in ZUGFeRDInvoiceImporter.java fix encoding error when JVM has a standard encoding other than UTF-8 --- .../java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java index 90baad58..50bcd8a6 100644 --- a/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java +++ b/library/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDInvoiceImporter.java @@ -1172,7 +1172,7 @@ public class ZUGFeRDInvoiceImporter { bomlessData = rawXML; } - return new String(bomlessData); + return new String(bomlessData, StandardCharsets.UTF_8); } /***