If you want to get the hex values of some string, then this works:
$ echo "testing some values"$'\157' | xxd 0000000: 7465 7374 696e 6720 736f 6d65 2076 616c testing some val 0000010: 7565 736f 0a ueso.
If you just need the "plain" string:
$ echo "testing some values"$'\157' | xxd -p 74657374696e6720736f6d652076616c7565736f0a
If you need to "reverse" an hex string, you do:
$ echo "74657374696e6720736f6d652076616c7565736f0a" | xxd -r -p testing some valueso
If what you need is the character representation (not hex), you could do:
$ echo "testing:"$'\001\011\n\bend test' | od -vAn -tcx1 t e s t i n g : 001 \t \n \b e n d 74 65 73 74 69 6e 67 3a 01 09 0a 08 65 6e 64 20 t e s t \n 74 65 73 74 0a
Or:
$ echo "testing:"$'\001\011\n\bend test' | od -vAn -tax1 t e s t i n g : soh ht nl bs e n d sp 74 65 73 74 69 6e 67 3a 01 09 0a 08 65 6e 64 20 t e s t nl 74 65 73 74 0a