Skip to content

Commit

Permalink
Merge pull request #287 from b123400/fix-284
Browse files Browse the repository at this point in the history
Export edifact files in ISO-8859-1
  • Loading branch information
zdavatz authored Sep 28, 2024
2 parents bb9ee9c + d7aca9c commit e91d9b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public void write(OutputStream outputStream) throws Exception {
unt41.setMessageRefNum("1");
unt41.setSegmentCount(segmentCount);
message41.setMessageTrailer(unt41);
factory.toUNEdifact(interchange, new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
factory.toUNEdifact(interchange, new OutputStreamWriter(outputStream, StandardCharsets.ISO_8859_1));
}

public void write(OutputStream s, Config _config) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ public void write(OutputStream outputStream) throws Exception {
message41.setMessageTrailer(unt41);
interchange.setMessages(Arrays.asList(message41));

factory.toUNEdifact(interchange, new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
factory.toUNEdifact(interchange, new OutputStreamWriter(outputStream, StandardCharsets.ISO_8859_1));
}

public void write(OutputStream s, Config _config) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ public void write(OutputStream outputStream) throws Exception {
message41.setMessageTrailer(unt41);
interchange.setMessages(Arrays.asList(message41));

factory.toUNEdifact(interchange, new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
factory.toUNEdifact(interchange, new OutputStreamWriter(outputStream, StandardCharsets.ISO_8859_1));
}

public void write(OutputStream s, Config _config) throws Exception {
Expand Down

0 comments on commit e91d9b3

Please sign in to comment.