Hi,
first many thanks for this exiting project!
I am using smooks for converting xml to edifact and have issues with text values containing german umlaute characters.
These characters are converted to Question marks in resulting edi stream.
this is my smooks config:
this is my java code:
Smooks smooks = smooksProvider.getSmooks("classpath:/META-INF/smooks/orders-export-config.xml");
StringWriter result = new StringWriter();
smooks.filterSource(new StreamSource(new StringReader(xmlOrders)), new StreamResult(result));
String ediOrders = result.toString();
Writer writer = Files.newBufferedWriter(filepath, StandardCharsets.ISO_8859_1));
writer.write(ediOrders);
this is snippet of input xml:
<E4440>Speicherbestellung. Bitte Stück genau liefern. Finalen Beleg beachten</E4440>
this is snippet of resulting edi:
FTX+ZZZ+++Speicherbestellung. Bitte St?ck genau liefern. Finalen Beleg beachten'
What i am doing wrong?