Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!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 16:15:13 +0100 Organization: Dirk Bruere at Neopax Lines: 21 Message-ID: <92ft7sFjeiU2@mid.individual.net> References: <92ea64F3avU1@mid.individual.net> <2rb4s6h1n4apqgcd6vjljeiv71mhaofanv@4ax.com> 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 YMTRLazsV9U2bAOkBQWGGAyJ8pKoC+W8rFoAvViToawQDVG0Ev Cancel-Lock: sha1:qXHRHavXkUK0qryCbKK2LTsp90o= 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: <2rb4s6h1n4apqgcd6vjljeiv71mhaofanv@4ax.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3563 On 05/05/2011 06:03, Roedy Green wrote: > On Thu, 05 May 2011 01:43:51 +0100, Dirk Bruere at NeoPax > wrote, quoted or indirectly quoted someone who > said : > >> 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? > > see http://mindprod.com/applet/converter.html > to generate code for most any conversion need. Neat! -- Dirk http://www.neopax.com/technomage/ - My new book - Magick and Technology