Scott Gonyea wrote in post #949256:
> Will this work?
>
> blah1 = "#{0xFF.chr} abcde"
> blah2 = blah.split(/[^[:print:]]/).join

Only if the desired encoding is ASCII.
-- 
Posted via http://www.ruby-forum.com/.