Printf
ph
Get hex code of a character
$> printf "%x%x\n" "'A" "'a" 4161
In manual page,
If the leading character is a single-quote or double-quote, the value shall be the numeric value in the underlying codeset of the character following the single-quote or double-quote.
[1]