Afficher un message
Vieux 13/03/2008, 04h34   #5
William James
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mechanize 0.7.3 Released

On Mar 12, 4:58 pm, Roger Pack <rogerpack2...@gmail.com> wrote:
> Aaron Patterson wrote:
> > mechanize version 0.7.3 has been released!

>
> Thanks for mechanize--we use mechanize at work and it works well.
>
> Question on strings:
> I seem incapable of figuring out how to 'recreate' this string in
> "string" format:
>
> Here it is byte by byte
>
> bytes = [100, 101, 110, 116, 226, 60, 56, 48, 62, 60, 57, 57, 62, 115,
> 32, 112, 114, 101, 118, 105, 111, 117]
> for b in bytes do all << b; end # create the string


bytes = [100, 101, 110, 116, 226, 60, 56, 48, 62, 60, 57, 57,
62, 115, 32, 112, 114, 101, 118, 105, 111, 117]

puts bytes.map{|n| n.chr}.join
  Réponse avec citation
 
Page generated in 0,04348 seconds with 9 queries