Author |
Message
|
raju71 |
Posted: Fri Oct 05, 2007 11:28 am Post subject: junk characters when reading from a queue using MQ java prog |
|
|
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 |
|
 |
fjb_saper |
Posted: Fri Oct 05, 2007 2:24 pm Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Fri Oct 05, 2007 4:33 pm Post subject: |
|
|
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 |
|
 |
Gert-Jan |
Posted: Thu Oct 25, 2007 10:10 am Post subject: Re: junk characters when reading from a queue using MQ java |
|
|
Newbie
Joined: 30 Sep 2004 Posts: 5 Location: The Netherlands
|
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 |
|
 |
zpat |
Posted: Thu Oct 25, 2007 11:17 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
|
Back to top |
|
 |
|