Posted: Thu Jul 03, 2008 12:43 pm Post subject: En dash on AIX
Acolyte
Joined: 19 Feb 2004 Posts: 73
The message flow receives an XML message (UTF- containing an en dash character
<REGION_NAME>W – West</REGION_NAME>
Previously I was receiving an uncovertable character error which was fixed by setting the CCSID to 1208
SET OutputRoot.Properties.CodedCharSetId = 1208;
after setting this when the message is written to a queue it appears as
<REGION_NAME>W – West</REGION_NAME>
The en dash has now become
HEX value, E28093
I know the en dash is not a valid character in ISO-8859-1 which is the default AIX (code page 819)
Has the meaning of the original XML been lost and what can be done about this?
Posted: Thu Jul 03, 2008 2:40 pm Post subject: Re: En dash on AIX
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
mlafleur wrote:
The message flow receives an XML message (UTF- containing an en dash character
<REGION_NAME>W – West</REGION_NAME>
Previously I was receiving an uncovertable character error which was fixed by setting the CCSID to 1208
SET OutputRoot.Properties.CodedCharSetId = 1208;
after setting this when the message is written to a queue it appears as
<REGION_NAME>W – West</REGION_NAME>
The en dash has now become
HEX value, E28093
I know the en dash is not a valid character in ISO-8859-1 which is the default AIX (code page 819)
Has the meaning of the original XML been lost and what can be done about this?
Again, what do you use to look at the message on the queue. Do not be fooled by the display... you might want to look at the hex values. Some utilities (rfhutil ih03) will retrieve the message correctly in UTF-8 but are not capable of displaying it in UTF-8. So look at the hex values, all should be well.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum