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 » About the conversion

Post new topic  Reply to topic
 About the conversion « View previous topic :: View next topic » 
Author Message
pawel_janowski
PostPosted: Tue Oct 16, 2007 11:59 pm    Post subject: About the conversion Reply with quote

Apprentice

Joined: 13 Dec 2006
Posts: 38

Hi!
I try to convert a decimal code of a character stored in integer variable (i.e. 220) into it's character representation an to set this to a character variable.
How can I do this?

Regards,

Pawel Janowski
_________________
Pawel Janowski
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Oct 17, 2007 2:13 am    Post subject: Re: About the conversion Reply with quote

Grand High Poobah

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

pawel_janowski wrote:
Hi!
I try to convert a decimal code of a character stored in integer variable (i.e. 220) into it's character representation an to set this to a character variable.
How can I do this?

Regards,

Pawel Janowski

This is never a really good idea because of CCSID conversions...
This being said... you can always use the String(byte[] bytes) constructor... or better yet String(byte[] bytes, String charsetname) constructor in java...

Of course you can use Integer.byteValue() too...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Wed Oct 17, 2007 10:27 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

As this was asked in the Broker forum: CAST

Cheers.
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » About the conversion
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.