Use UTF-8 when creating new Strings from byte[].

This commit is contained in:
langfr
2025-10-08 11:29:54 +01:00
parent cae963a1ca
commit 95b9325222
13 changed files with 34 additions and 31 deletions

View File

@@ -166,7 +166,7 @@ can be used to get XML
```
ZUGFeRD2PullProvider zf2p = new ZUGFeRD2PullProvider();
zf2p.generateXML(i);
String theXML = new String(zf2p.getXML());
String theXML = new String(zf2p.getXML(), StandardCharsets.UTF_8);
```
or can also be used with setTransaction to generate invoice PDFs straight away.
### Embedding ZF1 to ZF2 migration