Re: [HAPI-devel] Message Hexadecimal Encoding

2012-11-13 Thread Jens Kristian Villadsen
Hi Paulo - Why would you spend your time encoding it? Since HAPI is written in Java and all strings are in Unicode and the reading and writing of bytes should be handled for you at http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/llp/ExtendedMinLLPReader.htmland http://hl7api.sourceforge.net/xref/c

Re: [HAPI-devel] Message Hexadecimal Encoding

2012-11-13 Thread Paulo Ferreira
Thanks Jens, This field *just identifies* the message encoding, but my question was if there is anyway in HAPI to execute an encoding. I have already a java Class which browse a message and *encode it*. I was just wondering if HAPI had something similar. Cheers, Paulo Ferreira. On 12 November 201

Re: [HAPI-devel] Message Hexadecimal Encoding

2012-11-12 Thread Jens Villadsen
Hi Paulo - I think you need to check out the MSH-18 field. That should explain it for you On 12 November 2012 18:59, Paulo Ferreira wrote: > Hello all, > > I'm wondering if HAPI have some way to encode/decode (hexadecimal). > For instance, I am from Portugal and our language have some special

[HAPI-devel] Message Hexadecimal Encoding

2012-11-12 Thread Paulo Ferreira
Hello all, I'm wondering if HAPI have some way to encode/decode (hexadecimal). For instance, I am from Portugal and our language have some special characters like: â, ç, õ, etc: *NOT CODED*: "O João encontra-se de péssima saúde" *CODED*: "O Jo\xE3\o encontra-se de p\xE9\ssima sa\xFA \de" Cheers,