Author |
Message
|
nitro |
Posted: Tue Sep 28, 2004 3:59 pm Post subject: Message Encoding |
|
|
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 |
|
 |
chanduy9 |
Posted: Tue Sep 28, 2004 4:32 pm Post subject: |
|
|
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 |
|
 |
Nigelg |
Posted: Wed Sep 29, 2004 1:17 am Post subject: |
|
|
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 |
|
 |
nitro |
Posted: Wed Sep 29, 2004 9:15 am Post subject: |
|
|
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 |
|
 |
kirani |
Posted: Wed Sep 29, 2004 10:18 pm Post subject: |
|
|
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 |
|
 |
nitro |
Posted: Thu Sep 30, 2004 3:29 pm Post subject: |
|
|
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 |
|
 |
|