|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Special Characters Replacement |
« View previous topic :: View next topic » |
Author |
Message
|
Lucky |
Posted: Thu Mar 20, 2008 12:09 am Post subject: Special Characters Replacement |
|
|
Apprentice
Joined: 06 Feb 2007 Posts: 35
|
Hi,
I am facing a problem, XML message is coming with special/international characters like ñ. but after coming out of the flow it is replaced as '??'
I am not transforming the input message its just a passthrought flow.
I need to send message as it is with special characters...
MQInput node Properties:
Message Domain: XMLNS
Character coded set Id, Encoding : 0
Validation: None.
Why is this replacement happening? Do i need to do some settings? |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 20, 2008 3:02 pm Post subject: Re: Special Characters Replacement |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Lucky wrote: |
Hi,
I am facing a problem, XML message is coming with special/international characters like ñ. but after coming out of the flow it is replaced as '??'
I am not transforming the input message its just a passthrought flow.
I need to send message as it is with special characters...
MQInput node Properties:
Message Domain: XMLNS
Character coded set Id, Encoding : 0
Validation: None.
Why is this replacement happening? Do i need to do some settings? |
How about setting specifically the output properties like
SET OutputRoot.Properties.CodedCharSetId = 1208;
or
SET OutputRoot.Properties.CodedCharSetId = InputRoot.Properties.CodedCharSetId;
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Lucky |
Posted: Tue Apr 08, 2008 4:31 am Post subject: |
|
|
Apprentice
Joined: 06 Feb 2007 Posts: 35
|
Thanks for the reply,
The application(custom to the client) was the problem holder which was showing the chars incorrectly as '??" |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 08, 2008 4:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Apr 08, 2008 5:06 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Yes, its a double post....
_________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
mqpaul |
Posted: Wed Apr 09, 2008 3:11 am Post subject: Looks like an application problem |
|
|
 Acolyte
Joined: 14 Jan 2008 Posts: 66 Location: Hursley, UK
|
Quote: |
The application(custom to the client) was the problem holder which was showing the chars incorrectly as '??" |
If the incoming XML message used default UTF-8, international characters are frequently double-byte. It looks like your client application doesn't understand, and is interpreting the two bytes as (say) ISO8859-1 Western European ASCII), or maybe a Windows equivalent thereof.
Several possible approaches:
1. Change the message to use the same code page as the client, using "SET OutputRoot.Properties.CodedCharSetId = " for the client character set.
2. Explicitly set the output root to UTF-8 using "SET OutputRoot.Properties.CodedCharSetId = 1208;" as described earlier, and change the client to read the message as UTF-8 and convert to its local code page for display. (For example, in Java, you could write
Code: |
byte[] msgBytes = /* client stuff to read the msg */;
String msgChars = new String(msgBytes, "UTF-8");
System.out.println(msgChars); |
3. Change the code page used by the system running the client application to "UTF-8". _________________ Paul |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|