Re: [HAPI-devel] HAPI Server Turkish Character Problem............

2010-10-13 Thread hilal ceyhan
Rahul, I know I must set charset for turkish but how do i set it for HAPI Server ??? HAPI Server does not give permission to change charset.. I tried different things but did not work.:( Here is my HL7Server class: LowerLayerProtocol llp = LowerLayerProtocol.makeLLP(); PipeP

[HAPI-devel] Counting or iterating over segments for an unkown or generic message type

2010-10-13 Thread Jonathan Bartels
I have an application that is focused on processing messages segment by segment, it is largely agnostic to the type of message. For example if we get a message with an IN1 segment, the application will capture insurance data. I am trying to do this with: protected int getSegmentCount(String se

Re: [HAPI-devel] HAPI Server Turkish Character Problem............

2010-10-13 Thread Rahul Somasunderam
Hilal, You need to set the encoding right on while reading from the stream, as well as while writing to the stream. I'm not sure what charset is required for turkish, but you may be interested in trying out UTF-8. R, rahul On Wed 10/13/10 2:02 AM , hilal ceyhan [email protected] sent: >

[HAPI-devel] HAPI Server Turkish Character Problem............

2010-10-13 Thread hilal ceyhan
Hi all, I have used LowerLayerProtocol with HAPI SimpleServer and sended HL7 Message with HL7Inspector to my HAPI Server. Sended message has some turkish characters(ş,ç,ğ,İ,..). When server has received this message I encode the message as below: PipeParser parser = new PipeParser();