Re: [HAPI-devel] unescaping

2012-07-11 Thread James Agnew
Hi Gabriel, I see what you mean. HAPI does not by default do that kind of translation, since it would be impossible to get it right across all platforms and all of the escape sequences that HL7 supports. The new version of HAPI (almost released) does include a method which converts text datatypes

Re: [HAPI-devel] unescaping

2012-07-09 Thread James Agnew
Hi Gabriel, Do you mean that you have a string which contains a specical character, and you want getValue() to return it as the corresponding escape sequence (like it would appear in an actual message)? If so, encode() would be the method to call. If you have (for example) an ST that contains the

[HAPI-devel] unescaping

2012-07-09 Thread Gabriel Euzet
Hi ! When I receive an HL7 document, how can I replace the escaping sequences by the "normal" characters (HL7 norm, chapter 2.7) ? Should I override the getValue() ? How ? Have I to use something like "String.replace()" everywhere I call getValue() ? Regards, Gabe