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 » Character conversion after mapping in ESQL

Post new topic  Reply to topic
 Character conversion after mapping in ESQL « View previous topic :: View next topic » 
Author Message
saurabh867
PostPosted: Thu Sep 08, 2011 12:27 am    Post subject: Character conversion after mapping in ESQL Reply with quote

Voyager

Joined: 13 Jun 2010
Posts: 78

Hi,
I have a message flow which creates a new message (IDOC XML for SAP Adapter) from the input message.
Now if the input has some finnish character 'ä'. After mapping this to the output, the value changes to other character '„'.
I have tried hard-coding the value 'ä' in the output message set but still at the output side the value gets changed.
To make sure that the message set does not cause any issue, I have created a sample flow to pass a message with these characters and parse this message with same message set. The characters come correct in this way.
Should something be done while assigning the values in ESQL for these characters.
And yes I have some minimum knowledge about encoding by reading this article which was recommended in this forum: http://www.joelonsoftware.com/printerFriendly/articles/Unicode.html

I have tried doing CAST('Golderä Associates' AS CHARACTER CCSID 1208);
Toolkit - 6.1.0.8 , Broker - 6.1.0.8
Back to top
View user's profile Send private message
rekarm01
PostPosted: Thu Sep 08, 2011 1:48 am    Post subject: Re: Character conversion after mapping in ESQL Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

saurabh867 wrote:
Now if the input has some finnish character 'ä'. After mapping this to the output, the value changes to other character '„'.

No, the display changes from one character to another, but that could just as easily be a limitation of the display tool. The value (bytes) has yet to be determined.

Use the available debugging tools (such as rfhutil, amqsbcg0, M071, usertrace, Trace node, etc.) to display the headers and hex dump of both the input message and the output message. Confirm that the input ccsid matches the input bytes, and that the output ccsid matches the output bytes.

saurabh867 wrote:
I have tried doing CAST('Golderä Associates' AS CHARACTER CCSID 1208);

CASTing CHARACTER AS CHARACTER seldom does anything interesting.
Back to top
View user's profile Send private message
saurabh867
PostPosted: Thu Sep 08, 2011 1:58 am    Post subject: Reply with quote

Voyager

Joined: 13 Jun 2010
Posts: 78

Quote:
No, the display changes from one character to another, but that could just as easily be a limitation of the display tool



Right. But when I dont perform any mapping(I pass the message having these character to input queue and get at the o/p queue), I see the correct data. But When I map these, I get these characters.
I m using RfhUtil to send and receive the data .
Code page is 1208 while sending the message.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Sep 08, 2011 4:08 am    Post subject: Reply with quote

Grand High Poobah

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

saurabh867 wrote:
Code page is 1208 while sending the message.


So for absolute clarity:

What is the CCSID in the MQMD of the input message?
What is the CCSID used to write the output message?
What is the hex value of the character in question on input?
What is the hex value of the character in question on output?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Sep 08, 2011 5:09 am    Post subject: Reply with quote

Grand High Poobah

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

Are you doing a hard map of
Code:
OutputRoot.Properties.CodedCharSetId = 1208;

If not you might want to try it.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
saurabh867
PostPosted: Tue Sep 13, 2011 2:33 am    Post subject: Reply with quote

Voyager

Joined: 13 Jun 2010
Posts: 78

Thnx,
The issue got resolved now. The issue was with the set of tools used in editing/viewing the UTF-8 characters.

Even though I copied the correct character but I used notepad to save that character and run it through the broker.

I realized the problem and used notepad++ with UTF-8 encoding to change the file and then a UTF-8 viewer to view the output.
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 » Character conversion after mapping in ESQL
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.