You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Emojis in an HL7 message are not deserialized correctly when using non-strict parser, which causes an error and prevents normal message processing.
Insert the emoji somewhere in the Source outbound message (msg['MSH']['MSH.4']['MSH.4.1'] = "😀")
Create 2 destinations, the first one with HL7 inbound, strict parser; the second one, HL7 inbound, non-strict parser. Create a transformer in each destination otherwise the message will not be parsed and no error will occur.
Process a message
Expected behavior
Correct emoji deserialization, for example:
Original -> XML escaped (Source Transformed) -> Original (Source Encoded & Destination Raw) -> XML escaped (Destination Transformed)
😀 -> 😀 -> 😀 -> 😀
💄 -> 💄 -> 💄 -> 💄
Actual behavior
Incorrect emoji deserialization, for example:
Original -> XML escaped (Source Transformed) -> Original (Source Encoded & Destination Raw) -> XML escaped (Destination Transformed)
The emoji was being inserted in the HL7 in the source transformer, so any message (e.g. MSH|^~&|MSH3|😀|B|C|D|E|MDM^T02^MDM_T02|||2.5||||||UNICODE UTF-8)
Describe the bug
Emojis in an HL7 message are not deserialized correctly when using non-strict parser, which causes an error and prevents normal message processing.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Correct emoji deserialization, for example:
😀
-> 😀 ->😀
💄
-> 💄 ->💄
Actual behavior
Incorrect emoji deserialization, for example:
😀
-> 😀 ->��
💄
-> 💄 ->��
Screenshots
Source transformer
Source Transformed
Source encoded
Destination strict parser Raw
Destination strict parser Transformed
Destination non-strict parser Raw
Destination non-strict parser Transformed
Destination non-strict parser Error
Environment (please complete the following information):
Workaround(s)
Using strict parser, and changing the channel accordingly; which is not always an option.
The text was updated successfully, but these errors were encountered: