Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Dirk Bruere at NeoPax Newsgroups: comp.lang.java.programmer Subject: Re: char to decimal Date: Thu, 05 May 2011 02:12:43 +0100 Organization: Dirk Bruere at Neopax Lines: 16 Message-ID: <92ebs8FdqlU1@mid.individual.net> References: <92ea64F3avU1@mid.individual.net> Reply-To: dirk.bruere@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 1Op3OLRRnsFtzUv9MWMKTA848S7yAb/vdblIvP0lzcdR5dShzy Cancel-Lock: sha1:moc2YmWXiVFnGdWCvHXpsCa6Efg= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <92ea64F3avU1@mid.individual.net> Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3529 On 05/05/2011 01:43, Dirk Bruere at NeoPax wrote: > IU need to take a char in UTF-8 and convert it to an ascii int (decimal) > > eg "a" = 97 > > which is then converted to the string "97" > Is there a simple way to do this? > Thanks. Never knew it was so easy! -- Dirk http://www.neopax.com/technomage/ - My new book - Magick and Technology