|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Character Conversion Issue |
« View previous topic :: View next topic » |
Author |
Message
|
GregG |
Posted: Wed Apr 25, 2007 5:16 am Post subject: Character Conversion Issue |
|
|
Novice
Joined: 31 Jul 2006 Posts: 18
|
I have read many of the posts regarding Character Conversion, but have not seen any that have the symptom I am having. I am trying to fix a compute node that errors due to casting error.
The MQMD has CCSID 437 and the message is coming in as a blob. I am trying to cast the blob to character for processing and storing in a DB.
Currently it is casting using CCSID 1208 and the problem character is a hex A3 (but other non-ascii characters also are common).
When I change the CCSID to any of the following 819, 5438 or 1252, the character seems to get converted correctly to the Pound sign, but an extra hex value is also being generated.
Hex A3 converts to Hex C2A3, (Hex C2 is an A Circumflex character).
Not sure why this is happening and wondering if anyone has any suggestions...
Thanks |
|
Back to top |
|
 |
Nigelg |
Posted: Wed Apr 25, 2007 11:31 pm Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
437, & 819 5348 1252 are single byte character sets. 1208 is multi-byte Unicode with variable number of bytes per character. the 'normal' character set, A-Z a-z 0-9 and most punctutation and special characters, represented in 437 by characters with a value less than 128 are also represented in 1208 by a single character, often the same as in 437.
However, many of the characters greater than 127 are converted to 1208 as double byte characters, as in your case with A3. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|