ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » encoding

Post new topic  Reply to topic
 encoding « View previous topic :: View next topic » 
Author Message
maxis
PostPosted: Tue Nov 12, 2002 6:23 am    Post subject: encoding Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Thu Nov 14, 2002 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
maxis
PostPosted: Mon Nov 18, 2002 12:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Mon Nov 18, 2002 8:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » encoding
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.