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 » IBM MQ Java / JMS » French/Greek charachters Conversion error

Post new topic  Reply to topic
 French/Greek charachters Conversion error « View previous topic :: View next topic » 
Author Message
nak1984
PostPosted: Sun Dec 11, 2011 11:35 pm    Post subject: French/Greek charachters Conversion error Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Dec 12, 2011 5:46 am    Post subject: Re: French/Greek charachters Conversion error Reply with quote

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
View user's profile Send private message
nak1984
PostPosted: Mon Dec 12, 2011 11:52 pm    Post subject: Re: French/Greek charachters Conversion error Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Tue Dec 13, 2011 3:26 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
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
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 13, 2011 6:18 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » French/Greek charachters Conversion error
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.