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 » native2ascii equivalent function using ESQL

Post new topic  Reply to topic
 native2ascii equivalent function using ESQL « View previous topic :: View next topic » 
Author Message
BCBS
PostPosted: Thu Jul 29, 2010 11:39 am    Post subject: native2ascii equivalent function using ESQL Reply with quote

Apprentice

Joined: 12 Jul 2006
Posts: 37

Here comes another topic on conversion. Looks like there are tons of topics here covering this area. I did some search but could not find an answer to what I was curious to know.

native2ascii tool from Java does the conversion to ascii as below:
i/p: <to>xyz男装牛仔国</to>
o/p: <to>xyz\u7537\u88c5\u725b\u4ed4\u56fd</to>

Ok, now in message flow, I can add a JCN and get this conversion done. But wondering how (if) I can achieve the same using ESQL/node properties?

1) CAST function --- may be????
_________________
_________________________________
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 29, 2010 12:04 pm    Post subject: Re: native2ascii equivalent function using ESQL Reply with quote

Grand High Poobah

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

BCBS wrote:
Here comes another topic on conversion. Looks like there are tons of topics here covering this area. I did some search but could not find an answer to what I was curious to know.

native2ascii tool from Java does the conversion to ascii as below:
i/p: <to>xyz男装牛仔国</to>
o/p: <to>xyz\u7537\u88c5\u725b\u4ed4\u56fd</to>

Ok, now in message flow, I can add a JCN and get this conversion done. But wondering how (if) I can achieve the same using ESQL/node properties?

1) CAST function --- may be????

So what is the point of converting a non convertible character to a byte representation in an arbitrary character code set? It is still gibberish...
you could just as well have used 64 bit encoding...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
BCBS
PostPosted: Thu Jul 29, 2010 1:01 pm    Post subject: Reply with quote

Apprentice

Joined: 12 Jul 2006
Posts: 37

fjp_saper wrote:

you could just as well have used 64 bit encoding..

Right, agreed. Suppose if the source app doesn't have the capability for binary encoding algorithms (like UUencode, base64), wondering if the encoding can occur in MB layer.
_________________
_________________________________
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 29, 2010 7:34 pm    Post subject: Reply with quote

Grand High Poobah

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

BCBS wrote:
fjp_saper wrote:

you could just as well have used 64 bit encoding..

Right, agreed. Suppose if the source app doesn't have the capability for binary encoding algorithms (like UUencode, base64), wondering if the encoding can occur in MB layer.


Sure you can, but you didn't need a JCN to do it. A call to a java function/procedure from ESQL could have done it just as well.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Fri Jul 30, 2010 1:44 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Your native2ascii approach sounds wrong. I think you should be fixing the downstream application so that it can either
a) deal with an any incoming encoding or
b) handle binary BLOB data in at least one form
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 » native2ascii equivalent function using 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.