Hi,

The MinLLPReader class evaluates a system property called
"ca.uhn.hl7v2.llp.charset". 
If it's set to "default", it uses the default character set of the system
environment. 
If you set it to "ISO_8859_9" (e.g. by launching the application with
-Dca.uhn.hl7v2.llp.charset=ISO_8859_9") you explicitly force using the
turkish charset 
If it isn't set at all, US-ASCII is used.

I haven't checked this, but you might want to give it a try.

cheers
Christian


ceyhil wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://old.nabble.com/HAPI-Server-Turkish-Character-Problem............-tp29950785p29960795.html
Sent from the hl7api-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
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

Reply via email to