Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.java.programmer Subject: Re: char to decimal Date: Thu, 05 May 2011 01:14:18 -0700 Organization: Aioe.org NNTP Server Lines: 19 Message-ID: References: <92ea64F3avU1@mid.individual.net> <2rb4s6h1n4apqgcd6vjljeiv71mhaofanv@4ax.com> Reply-To: nma@12000.org NNTP-Posting-Host: tUYQ4Ty9mMw9Pdc8TJRFQA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3546 On 5/4/2011 10:03 PM, 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. That is a really nice and useful applet. Thanks for sharing it. --Nasser