7stud -- wrote:
> 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

That is not exactly ideal. Is there a cleaner way.
-- 
Posted via http://www.ruby-forum.com/.