I think running SimpleServer with system parameter
'-Dca.uhn.hl7v2.llp.charset=UTF-8' will do the trick.
Regards,
Jure
From: Jens Kristian Villadsen [mailto:[email protected]]
Sent: Wednesday, October 05, 2011 1:48 PM
To: [email protected]
Subject: [HAPI-devel] Support for multiple receiving multiple encodings
Hi All
Initial, I would like to thank James and all the other guys behind the HAPI
framework - that's solid work, guys, solid work! It has made my life a h**l lot
easier.
However I would like to get some input/solutions/suggestions to the following
problem:
I'm about to write an HL7 application that has to support incoming messages
encoded in various different formats, e.g. an ADT_A04 being encoded in UT8
(MSH-18) and the same kind of message encoded in, lets say ISO-8859-1. As far
as I can see, using the SimpleServer, this is not possible, as the SimpleServer
is using LowerLayerProtocol which is using MinLLPReader which uses the static
CHARSET_KEY for decoding which means that all received messages will be decoded
with the same encoding, even though they are encoded differently. So what is
the solution to this?
To manually convert all fields that I'm reading from the message dependant of
what is stated in the MSH-18 for each message?
--
Med venlig hilsen / Kind regards
Jens Kristian Villadsen
cand.polyt
Systemudvikler / System developer
Cetrea A/S, Denmark
phone : +45 38 40 05 81
address: Brendstrupgårdsvej 21F, DK-8200 Aarhus N.
e-mail : [email protected]<mailto:[email protected]>
w^3 : http://www.cetrea.com/
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel