From: Lloyd Linklater Date: 2008-09-18T22:03:10+09:00 Subject: Re: Beginner User having issue with converting char to ASCII James Gray wrote: > On Sep 12, 2008, at 5:25 PM, Nick Bo wrote: > >> my issue is I dont know how to take the character >> and convert it into ASCII. > > In Ruby 1.8 you can just index into the String and Ruby will return > the character value: > > >> "a"[0] > => 97 > > Hope that helps and welcome to Ruby! > > James Edward Gray II Just adding this for the sake of being complete: p ?A => 65 -- Posted via http://www.ruby-forum.com/.