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 » junk characters when reading from a queue using MQ java prog

Post new topic  Reply to topic
 junk characters when reading from a queue using MQ java prog « View previous topic :: View next topic » 
Author Message
raju71
PostPosted: Fri Oct 05, 2007 11:28 am    Post subject: junk characters when reading from a queue using MQ java prog Reply with quote

Novice

Joined: 03 Apr 2006
Posts: 13

I get some unkown characters at the beginning of the xml data when I read the message from a queue and printing to console using MQ java API .I put the message on the queue using MQ java API.
Any help would be appreciated.

<?xml version="1.0" encoding="UTF-8"?>
<MV_INTEGRATION_DOC DATE="2007/09/21" TIME="15:16:57">
<DOCUMENT_HEADER>
<PUBLISHER>MVM</PUBLISHER>
<INTEGRATION_TOPIC>VENDOR</INTEGRATION_TOPIC>
</DOCUMENT_HEADER>
<DOCUMENT_BODY>
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Oct 05, 2007 2:24 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Remember that the ONLY correct way to read a message after a writeutf() from the putter is a readutf() from the getter...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Oct 05, 2007 4:33 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

fjb_saper wrote:
Remember that the ONLY correct way to read a message after a writeutf() from the putter is a readutf() from the getter...


And remember, also, that it's almost never correct to use writeutf().
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Gert-Jan
PostPosted: Thu Oct 25, 2007 10:10 am    Post subject: Re: junk characters when reading from a queue using MQ java Reply with quote

Newbie

Joined: 30 Sep 2004
Posts: 5
Location: The Netherlands

raju71 wrote:


AFAIK this is a Microsoft 'invention'.
This 3-character-sequence indicates a UTF8-Sig encoded text file.
Which simply comes down to an UTF-8 encoded text file, preceded by these 3 characters.


Last edited by Gert-Jan on Fri Oct 26, 2007 3:16 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
zpat
PostPosted: Thu Oct 25, 2007 11:17 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Byte Order Mark
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 » IBM MQ Java / JMS » junk characters when reading from a queue using MQ java prog
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.