Author |
Message
|
nak1984 |
Posted: Sun Dec 11, 2011 11:35 pm Post subject: French/Greek charachters Conversion error |
|
|
Newbie
Joined: 11 Dec 2011 Posts: 5
|
I am new to MQ.
Our customer is sending the message in following properties through MQ7.
Encoding: 546
CodedCharSetId: 1208
Format: MQSTR
When we try to extract the jms Message from queue. All French/Greek characters are converted to ????
The jmsMessage instance received message type as a TextMessage.
Please advise as to how we can display the French/Greek characters properly.
Thanks. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Dec 12, 2011 5:46 am Post subject: Re: French/Greek charachters Conversion error |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
nak1984 wrote: |
Please advise as to how we can display the French/Greek characters properly. |
Have your JMS application use a code page that supports French/Greek characters?
Ensure the queue manager conversion from 1208 to a ASCII code page that contains French/Greek characters is configured correctly?
Disable WMQ's conversion of the message and do it entirely within JMS?
Other and possibly better solutions are undoubtably available. I urge you check the actual byte values of the message on the queue to ensure they're what you think they should be, and also to examine the actual byte values within your application to ensure they're really wrong rather than them being the correct values and whatever's displaying them is just putting ? characters & misleading you.
I also recommended the many threads in this forum on code page conversion. Problems like yours are common and been the subject of much discussion you may find useful. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
nak1984 |
Posted: Mon Dec 12, 2011 11:52 pm Post subject: Re: French/Greek charachters Conversion error |
|
|
Newbie
Joined: 11 Dec 2011 Posts: 5
|
Thanks for the reply.
I had actually checked the message from the queue itself using the amqsbcg utility. The message had all the characters present in the queue.
Its only when I am trying to retrieve the message from the queue using JMS. All the Greek/French characters are being converted to ????
The JMSMessage instance is TextMessage in the JMS. |
|
Back to top |
|
 |
zpat |
Posted: Tue Dec 13, 2011 3:26 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5867 Location: UK
|
Use bytesmessage to leave it in 1208.
But remember that UTF-8 can include 2 byte and 3 byte characters. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Dec 13, 2011 6:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 Location: LI,NY
|
zpat wrote: |
Use bytesmessage to leave it in 1208.
But remember that UTF-8 can include 2 byte and 3 byte characters. |
NO
The right thing to do is to set CCSID 1208 on the connection factory.
You don't have to worry about the CCSID of the incoming message as you are requesting the information in CCSID 1208.
Now all you need are the relevant transformation tables to UTF-8.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|