From: Kent Dahl Date: 2002-01-06T23:36:11+09:00 Subject: [ruby-talk:30346] Re: How to convert character code to a String? Ryo Furue wrote: > I fear I might be missing something obvious, but I'm wondering how to > get a one-character String with a given character code. Integer#chr is what you need: ------------------------------------------------------------ Integer#chr int.chr -> aString ------------------------------------------------------------------------ Returns a string containing the ASCII character represented by the receiver's value. 65.chr #=> "A" ?a.chr #=> "a" 230.chr #=> "\346" -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.�k.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/