Author |
Message
|
pshan81 |
Posted: Mon Jun 29, 2009 4:07 am Post subject: MQ Language support & conversion |
|
|
Acolyte
Joined: 24 May 2005 Posts: 72
|
Hi Experts,
I have the below requirement. Whenever an user in China submits a transaction, a message is generated in simplified chinese and sent to an PUT application. The application has to put the message in a remote queue and the destination GET application fetches the message from the queue and updates the DB (As simplified chinese itself). The PUT and GET application needs to be generic to handle messages from users of different countries like Japan, spain etc...
The source application runs on AIX (CCSID - 819) and the destination application runs on LINUX (CCSID - 1208).Locale is set to en_US.I believe by doing the below steps I can achieve the requirement.Kindly correct me if my understanding is wrong.
1.PUT application to use MQFMT_STRING & msg.characterset = simplified chinese
2.GET application to use MQGMO_CONVERT & msg.characterset = simplified chinese |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 29, 2009 4:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
The oddly coincidentaly discussion here describes code page options.
But in principle you're right. As long as the put correctly describes the message code page, and the receiving system can convert it, it works. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
pshan81 |
Posted: Mon Jun 29, 2009 4:28 am Post subject: |
|
|
Acolyte
Joined: 24 May 2005 Posts: 72
|
Vitor, Thanks for your reply.
If I need to receive the message in normal english, Is message.characterSet = 1208 (i.e) Destination platform en_US charset enough? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jun 29, 2009 4:37 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
pshan81 wrote: |
If I need to receive the message in normal english, Is message.characterSet = 1208 (i.e) Destination platform en_US charset enough? |
CCSID 1208 isn't en_US, it's utf-8. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jun 29, 2009 11:58 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Vitor wrote: |
pshan81 wrote: |
If I need to receive the message in normal english, Is message.characterSet = 1208 (i.e) Destination platform en_US charset enough? |
CCSID 1208 isn't en_US, it's utf-8. |
Ideally you should also have the partner CCSID installed on your machine. MQ uses primarily the OS to translate from codepage to codepage.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Jun 29, 2009 5:16 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Check the last chapter of the MQ Application Programming Reference to make sure that MQ can convert between the required code pages. _________________ Glenn |
|
Back to top |
|
 |
|