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 » WebSphere Message Broker (ACE) Support » Special Characters Replacement

Post new topic  Reply to topic
 Special Characters Replacement « View previous topic :: View next topic » 
Author Message
Lucky
PostPosted: Thu Mar 20, 2008 12:09 am    Post subject: Special Characters Replacement Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 20, 2008 3:02 pm    Post subject: Re: Special Characters Replacement Reply with quote

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
View user's profile Send private message Send e-mail
Lucky
PostPosted: Tue Apr 08, 2008 4:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Apr 08, 2008 4:34 am    Post subject: Reply with quote

Grand High Poobah

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

Is this connected to:

http://www.mqseries.net/phpBB2/viewtopic.php?t=42444&highlight=
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Tue Apr 08, 2008 5:06 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Yes, its a double post....

Vitor wrote:
Is this connected to:

http://www.mqseries.net/phpBB2/viewtopic.php?t=42444&highlight=

_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
mqpaul
PostPosted: Wed Apr 09, 2008 3:11 am    Post subject: Looks like an application problem Reply with quote

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
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 » WebSphere Message Broker (ACE) Support » Special Characters Replacement
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.