Hi,
When the PipeParser class encodes a message, it *escapes* its content=20
(for instance, escape characters (\) are changed into "\E\" codes). But,=20
when it parses a message, it does'nt similarly *unescape* it. Is it=20
normal ? or should the code be corrected like this (line 340) :
private static void parse(Type destinationField, String data,=20
EncodingCharacters encodingCharacters) throws HL7Exception {
...
// Terser.getPrimitive(destinationField, i+1,=20
j+1).setValue(subcomponents[j]);
String val =3D subcomponents[j];
if (val !=3D null) {
val =3D Escape.unescape(val, encodingCharacters);
}
Terser.getPrimitive(destinationField, i+1, j+1).setValue(val)=
;
...
}
(Using HAPI 0.4.)
Yours,
--=20
Fr=E9d=E9ric Dubru
Cliniques universitaires Saint-Luc
10, avenue Hippocrate
B-1200 Bruxelles
+32 2 764 36 43
http://www.saintluc.be
|