Convert hex to ASCII by rolf

s=""
try:
 while 1:
  for c in raw_input().split():
   d=chr(int(c,16))
   if"\n"==d:s+="\\n\n"
   elif" "<=d<="~":s+=d
   else:s+="\\x"+c.lower()   
except:print s

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

download

return to the top page