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 » Message Encoding

Post new topic  Reply to topic
 Message Encoding « View previous topic :: View next topic » 
Author Message
nitro
PostPosted: Tue Sep 28, 2004 3:59 pm    Post subject: Message Encoding Reply with quote

Newbie

Joined: 28 Sep 2004
Posts: 3

I'm trying to find out if there is a way where I can translate a message. By saying this means, if I have a message coming into MQSI in XML format but the text includes some foriegn language (eg. japanese, french, etc.). Is there a way I can just translate this? By translate, I don't mean actual word translation but just remove the accents? Also, is there a way to set the encoding as well?
Back to top
View user's profile Send private message
chanduy9
PostPosted: Tue Sep 28, 2004 4:32 pm    Post subject: Reply with quote

Disciple

Joined: 28 Nov 2001
Posts: 177
Location: USA

Hi,

There is no direct way to do this..you have to write your own function to do this.

You can set encoding value in Compute node by using below statement

SET OutputRoot.MQMD.Encoding = your value;

Thanks,
Chandra.
Back to top
View user's profile Send private message
Nigelg
PostPosted: Wed Sep 29, 2004 1:17 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

The most obvious way to do the conversion is to write a data conversion exit. Be aware that if you request conversion by WMQ that all the character data in a msg is treated as being in the same codeset, so if the data contains mixed English, Japanese, Italian, etc, then the conversion may result in garbled characters.
Back to top
View user's profile Send private message
nitro
PostPosted: Wed Sep 29, 2004 9:15 am    Post subject: Reply with quote

Newbie

Joined: 28 Sep 2004
Posts: 3

Thanks for the reply. I'm very new to ESQL. Do you happen to know where I can find out the OutputRoot.MQMD.CodedCharSetId = value;
SET OutputRoot.MQMD.Encoding = vale; Any idea where I can find out about the value that I should set for the CodedCharSetId and the Encoding? Thanks in advance
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Sep 29, 2004 10:18 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

CodedCharSet and Encoding should be set by your sending application. These are the attributes of MQMD header. You can refer to WMQ Application PRogramming Guide and Application Programming Reference manual for more detailed info on these attributes.
_________________
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
nitro
PostPosted: Thu Sep 30, 2004 3:29 pm    Post subject: Reply with quote

Newbie

Joined: 28 Sep 2004
Posts: 3

I have tried to look for the correct code to set the CodedCharSetId. Right now, I have UTF-8 message coming in. I basically want to change to something in English 7-bit. What should be the correct code? I tried to use this United Kingdom 7-bit 1013 but it gives me a failure. I wonder if this is possible to be done converting from 16 bit to 7 bit? Or am I using the wrong code?
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 » Message 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.