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/.