From: 7stud -- Date: 2009-07-22T09:35:19+09:00 Subject: Re: Byte–stream parsing in Ruby Elliott Cable wrote: > Hrm, #valid_encoding? is very helpful. But how can I stuff numerical > (`Fixnum`) bytes onto the string? hex_str = "\\x%x" % 195 puts hex_str --output:-- \xc3 -- Posted via http://www.ruby-forum.com/.