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();
PipeParser parser = new PipeParser();
NoValidation noValidation = new NoValidation();
parser.setValidationContext(noValidation);
hl7Server = new SimpleServer(port, llp, parser);
Application handler = new HL7Handler();
hl7Server.registerApplication("ADT", "A01", handler);
hl7Server.start();
This is message handler class:
public Message processMessage(Message msg) {
try {
PipeParser parser = new PipeParser();
String encodedMessage = parser.encode(msg);
System.out.println(encodedMessage);
}
I don't want to make changes in HAPI source code.
Is there another way to solve this problem?
thanks..
2010/10/13 Rahul Somasunderam <[email protected]>:
> 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:
>> 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();
>> String encodedMessage = parser.encode(msg);
>> But Turkish characters seems like a question mark (?).
>> I try all character set of HL7Inspector while sending.But didn't work.
>> can someone help me?????
>>
>> ---------------------------------------------------------------------------
>> ---Beautiful is writing same markup. Internet Explorer 9 supports
>> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
>> Spend less time writing and rewriting code and more time creating
>> greatexperiences on the web. Be a part of the beta today.
>> http://p.sf.net/sfu/beautyoftheweb_______________________________________________
>> Hl7api-devel mailing list
>> [email protected]https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>>
>>
>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel