Posted: Tue Oct 16, 2007 11:59 pm Post subject: About the conversion
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?
Posted: Wed Oct 17, 2007 2:13 am Post subject: Re: About the conversion
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
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