[Tex/LaTex] Output ASCII code as character on terminal in Latex

charactersdebuggingterminal-outputtex-core

If I have a letter/character, I can output its ASCII value using \number and backtick command:

*\typeout{\number`a}
97

What do I do if I have "97", and I want to show "a" in terminal? I have thought of \char – but note that \char typesets, it doesn't output to terminal (removed \char"97 hex usage as per comment):

*\typeout{\char97}
\char 97

What is the right command to use here?

Best Answer

 {\uccode`A=97
    \uppercase{\typeout{== A ==}}}

will typeout the character with character code 97