Convert hex to ASCII by %20

$><<$<.read.split.map{|a|a=a.hex;a==10?'\n
':31<a&&a<127?'%c'%a:'\x%02x'%a}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page