This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 8c2893ecb90a [CAMEL-22712] Add more encodings MllpProtocolConstants 
and assuming UNICODE to be UTF-8 (#20588)
8c2893ecb90a is described below

commit 8c2893ecb90a5a76c3cc0f6cc629c04643e06dd3
Author: anders-p-andersson-vgregion-se <[email protected]>
AuthorDate: Tue Dec 23 18:53:59 2025 +0100

    [CAMEL-22712] Add more encodings MllpProtocolConstants and assuming UNICODE 
to be UTF-8 (#20588)
    
    Co-authored-by: Anders Andersson <[email protected]>
---
 .../java/org/apache/camel/component/mllp/MllpProtocolConstants.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/MllpProtocolConstants.java
 
b/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/MllpProtocolConstants.java
index c53a04876617..e8cf8cb8dea8 100644
--- 
a/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/MllpProtocolConstants.java
+++ 
b/components/camel-mllp/src/main/java/org/apache/camel/component/mllp/MllpProtocolConstants.java
@@ -53,7 +53,10 @@ public final class MllpProtocolConstants {
         MSH18_VALUES.put("8859/8", Charset.forName("ISO-8859-8"));
         MSH18_VALUES.put("8859/9", Charset.forName("ISO-8859-9"));
         MSH18_VALUES.put("8859/15", Charset.forName("ISO-8859-15"));
+        MSH18_VALUES.put("UNICODE", StandardCharsets.UTF_8);
         MSH18_VALUES.put("UNICODE UTF-8", StandardCharsets.UTF_8);
+        MSH18_VALUES.put("UNICODE UTF-16", StandardCharsets.UTF_16);
+        MSH18_VALUES.put("UNICODE UTF-32", Charset.forName("UTF-32"));
 
         /*
           These values are defined in the HL7 Spec, but currently not mapped 
to a Java charset
@@ -69,10 +72,9 @@ public final class MllpProtocolConstants {
           CNS 11643-1992
           BIG-5
           UNICODE
-          UNICODE UTF-16
-          UNICODE UTF-32
 
           see: https://terminology.hl7.org/CodeSystem-v2-0211.html
+          CAMEL-22712: Assuming UNICODE to be UTF-8
         */
     }
 

Reply via email to