Replies: 1 comment 2 replies
-
@p-e-jak thank you for starting this discussion. I think using something like a configurable |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i'm successfully using staedi for EDIFACT output in a customer project (many thanks for this implementation with simple & flexible interface)
The customer requirements dictate to use the (fairly limited) UNOA charset, comprising the characters A-Z, a-z, 0-9, and a few more special characters ()
EDIOutputFactory.createEDIStreamWriter(OutputStream stream, String encoding)
already provides a way to specify an encoding.However, to my understanding it's currently not possible - in other words: responsibility of the staedi client - to ensure the output only contains characters valid according to UNOA.
In my case the input chars to be written to EDIFACT may also be a wider variety of Unicode characters including German umlauts ÄÖÜ, "&" frequently needed for German addresses (....straße = street) and others not contained in UNOA.
Hence, i need some conversion from the input to UNOB. This conversion may be customer specific, eg. Ä -> AE, or "ß" -> sz or s.
Would it be useful for other EDIFACT clients too, to perform such conversion - eg. based on a mapping from input char in a frequently used charset to ->UNOA/UNOB output char in some config file?
One possible way of implementing this (transparently) i can think of: using java.io.FilterOutputStream
I'm looking forward to your feedback :)
Beta Was this translation helpful? Give feedback.
All reactions