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 » Japanese XML chars. via MQ

Post new topic  Reply to topic
 Japanese XML chars. via MQ « View previous topic :: View next topic » 
Author Message
CHERIANV
PostPosted: Mon Feb 13, 2006 9:41 am    Post subject: Japanese XML chars. via MQ Reply with quote

Apprentice

Joined: 15 Feb 2002
Posts: 43
Location: New York

Hello,
We're receiving a UTF-8 XML message with Japanese chars. via MQ but the MQMD codepage is 819 within the message . We parse this message through a Message Flow hosted by a Z/OS WMQI 2.1 Broker (QM codepage 500). The message flow sets to output message MQMD code page = 930 to get the Japanese field in the output message . When we test this, we're getting some "?? " invalid chars. in associated fields that should have valid Japanese chars. in the output message.

Is there a way for the receiving application (ie. the message flow) to manipulate this message (MQMD = 819) it so we get the right Japanese chars. in the output message.

Should we ask the source application to explicitly set the MQMD codepage to 1208 ? If so, will that resolve the problem ?

Any input to resolve the problem is appreciated.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Feb 13, 2006 10:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

At all times, the CCSID of the message should accurately represent the contents of the message. So if the message contains data that is represented in 1208, then the CCSID should be 1208.

If you are getting bad characters when you output to a codepage of 930, that does not in any way imply that you have received bad characters on the input message.

It is entirely possible that converting the message TO codepage 930 has caused the problem.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
CHERIANV
PostPosted: Mon Feb 13, 2006 10:57 am    Post subject: Reply with quote

Apprentice

Joined: 15 Feb 2002
Posts: 43
Location: New York

Thanks Jeff. It appears that the message we are receiving is defaulted to the originating Queue Manager's copepage ie. 819. Is it possible to CAST the incoming message that we currently receive with CCSID 1208 and set the MQMD CCSID to 1208 as well within the message flow and reparse it as an XML before output to a codpage of 930.

Was wondering if there were any alternatives at all for handling the conversion at our end or is it not possible ?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Feb 13, 2006 11:02 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Broker automatically converts data into Unicode (and now someone from Hursley will likely correct this generalization) when it parses it into a logical message tree.

You need to determine if this is the cause of the problem, or if the cause of th e problem is casting back to codepage 930 on the output side.

Until you do that, you don't know what the problem is and you can't solve it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 14, 2006 5:45 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

mquseless wrote:
The solution is to define a custom msg format, and a custom msg converter. It is not too difficult; WMQ supplies an app (crtmqcvx on UNIX) which generates most of the code required. See the APG.


That's certainly *a* solution.

Ensuring that the CCSID properly identifies the message is another.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Feb 14, 2006 6:51 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I was assuming the "Japanese" characters were in UTF-8.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Japanese XML chars. via MQ
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.