echo -ne "A" | od -t u1 | sed -e "s/^[0-9]* *//"
But more awkward is converting from a decimal character code back to the character, but this does the trick, and took about 3 minutes to come up with:
$ X=65
$ HEX=(0 1 2 3 4 5 6 7 8 9 a b c d e f)
$ echo -e "x${HEX[$(( $X / 16))]}${HEX[$(( $X % 16 ))]}"
It works by converting which is less than 255 to hexadecimal, and then making use of echo -e which interprets \x as indicating an 8 bit character expressed in hexadecimal.