Re: [HAPI-devel] UTF-8 support, how to define and test?

2014-01-14 Thread Ian Vowles
Many thanks for this helpful information. I have posted it to our internal developer wiki, with credit to yourself, so that all may be enlightened by your good work :-) Thanks again Ian >>> Rahul Somasunderam 15/01/14 8:56 >>> This is a write up I had distributed to my team to help them under

Re: [HAPI-devel] UTF-8 support, how to define and test?

2014-01-14 Thread Rahul Somasunderam
This is a write up I had distributed to my team to help them understand and convince partner systems to use UTF 8. I've used groovy for all code samples. HTH. Content Encoding is what decides how Strings which are first class citizens in most modern programming languages, get converted into byte

Re: [HAPI-devel] UTF-8 support, how to define and test?

2014-01-14 Thread Ian Vowles
I have encountered some issues with character sets, although not to the extent Tom is dealing with. Rahul's comment about the character sets at each end is something I have encountered, and I will add that on the UNIX platforms I have dealt with, the base character set is NOT configured to UTF-8,

Re: [HAPI-devel] UTF-8 support, how to define and test?

2014-01-14 Thread Rahul Somasunderam
That is a sign of not having the same charset on both ends. In the MSH segment, I recall there are some restrictions that require you to stay within ASCII 7 bit. The other segments can be any charset you choose. On Jan 14, 2014, at 11:27 AM, Tom Wilson wrote: > After some research, I have ans

Re: [HAPI-devel] UTF-8 support, how to define and test?

2014-01-14 Thread James Agnew
Hi Tom, HAPI uses Java's underlying support for UTF-8 (and any other charsets) and I've never heard any reports that it was missing any support for specific subsets of that encoding. Is there any way that you could package your unit test up into something that could be shared? Cheers, James

Re: [HAPI-devel] UTF-8 support, how to define and test?

2014-01-14 Thread Tom Wilson
After some research, I have answered my own question. If no character set is defined in MSH-18, then the default is single byte printable ASCII (decimal 32-127). If anyone is interested, I am attaching a test ORU file which includes a full set of UTF-8 characters, above and beyond what is suppo

[HAPI-devel] UTF-8 support, how to define and test?

2014-01-14 Thread Tom Wilson
Hi. I’m in the final testing phase of a HAPI-based application, and I want to define precisely what character encoding it can support. I know the HL7v2 spec defines UTF-8 as the supported character set. However, it looks like it is only supporting a subset of UTF-8. I am testing by ingesting an