Relative Content

Tag Archive for hl7-fhirhapihapi-fhir

How to Retain UTF character in HAPI FHIR Message

I am using HAPI FHIR Libraries and receiving an XML-based FHIR message as a response to a REST call, which is stored in a string variable. This message contains UTF-8 characters such as tabs, new lines, and special characters. However, when converting the string response message to a Bundle object, these characters are being removed. Attaching example as a picture, as UTF chars are getting converted into new line and tab.

How to Retain UTF character in HAPI FHIR Message

I am using HAPI FHIR Libraries and receiving an XML-based FHIR message as a response to a REST call, which is stored in a string variable. This message contains UTF-8 characters such as tabs, new lines, and special characters. However, when converting the string response message to a Bundle object, these characters are being removed. Attaching example as a picture, as UTF chars are getting converted into new line and tab.