This workaround (avoiding eval) works, but is ever so slow !!

# convert all \nnn to corresponding character
data=text.gsub(/\\[0-7]{3,4}/) {|r| r.scanf("%c%o").last.chr}

Can any one suggest something better please ?

-- 
Posted via http://www.ruby-forum.com/.