|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
encoding |
« View previous topic :: View next topic » |
Author |
Message
|
maxis |
Posted: Tue Nov 12, 2002 6:23 am Post subject: encoding |
|
|
Centurion
Joined: 25 Jun 2002 Posts: 144
|
hello all,
am facing problem in encoding .. hope one of you could help me.
Input message is BLOB, encoding - MQENC_INTEGER_NORMAL, is happening in compute node. In the BLOB message am sending © character whose hex value is a9.
Message is backing out, though failure and catch terminal are connected.
Following is the excerpt from the log
Code: |
2002-11-12 09:20:20.758583 4885 RecoverableException BIP2521E: (11, 27) : Error casting a value from BLOB to CHARACTER.
An error occurred when casting a value of data type BLOB to a value of data type CHARACTER.
Subsequent messages will indicate the context of the error.
2002-11-12 09:20:20.758602 4885 RecoverableException BIP2135E: Source character 'a9' in field |
Code: |
cannot be converted to unicode from codepage '1208'. |
What codepage should I use or do i have to use different encoding format to accomdate these special character ?
thanx in advance
M |
|
Back to top |
|
 |
kirani |
Posted: Thu Nov 14, 2002 8:24 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Hi,
Could you post the part of the code where you are doing the CAST.
What is the encoding for your input message? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
maxis |
Posted: Mon Nov 18, 2002 12:45 pm Post subject: |
|
|
Centurion
Joined: 25 Jun 2002 Posts: 144
|
hello Kiran
following is the code where encoding is happening ..
Code: |
DECLARE stringBuffer CHARACTER;
SET stringBuffer = CAST(InputBody.BLOB AS CHARACTER ENCODING MQENC_INTEGER_NORMAL) ; |
Message is sent from the Window 2000 system, code page set to 437. |
|
Back to top |
|
 |
kirani |
Posted: Mon Nov 18, 2002 8:40 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Try using this:
Code: |
DECLARE stringBuffer CHARACTER;
SET stringBuffer = CAST(InputBody."BLOB"."BLOB" AS CHAR CCSID InputRoot.Properties.CodedCharSetId ENCODING MQENC_INTEGER_NORMAL);
or
SET stringBuffer = CAST(InputBody."BLOB"."BLOB" AS CHAR CCSID InputRoot.Properties.CodedCharSetId ENCODING InputRoot.Properties.Encoding);
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
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
|
|
|
|