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 » General IBM MQ Support » Junk characters appearing while fetching using MQGET

Post new topic  Reply to topic
 Junk characters appearing while fetching using MQGET « View previous topic :: View next topic » 
Author Message
sayan
PostPosted: Sat Feb 23, 2008 12:30 am    Post subject: Junk characters appearing while fetching using MQGET Reply with quote

Novice

Joined: 22 Feb 2008
Posts: 13

Hi,

We have done a MQ setup where the server is installed in Linux and the client is in UNIX. Our application program interacts with another application the details of which are unknown right now.

Anyways, when our application fetches from the queue with MQGET it displays some Junk characters.

The only detail we know that the message we are receiving is sent in
cp1250 format and our application works only in utf-8 format.

Could anyone provide me with the possible reason for this and the solution as well.
Back to top
View user's profile Send private message
Vitor
PostPosted: Sat Feb 23, 2008 3:35 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Make sure you're doing a get with convert
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Feb 23, 2008 6:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Make sure that the person who wrote the unknown app didn't decide to use writeUTF(), which will add a Byte Order Mark to the front of the data, and basically can't be read without using readUTF(), and is never really what you want for sending utf-8, or any other Unicode format.
_________________
I am *not* the model of the modern major general.
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 » General IBM MQ Support » Junk characters appearing while fetching using MQGET
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.