# How can I find out which letter the command {\char28} creates in my PDF?

I found a lot of answers to my questions in this forum but this time I have to create a new question.

I wanted to use the letter ø in my document, and because there was no easy solution for this, someone told me to use the command \char28 to create this letter.

As I understand, this solution is specific to the font I am using because it is somehow printing the letter stored in the slot that is defined by the number.

My question is now how can I find out which number produces which letter in my PDF?

• If your question is about printing the letter ø there is an easy answer: \usepackage[utf8]{inputenc}. Welcome to TeX.SE – Moriambar Apr 7 '17 at 19:11
• the standard command for ø in both plain tex and latex is \o or you can simply use ø if you are using the inputenc package. using numbers should be a last resort and even then only use them to set up command definitions so if you change encoding you only have to change the numbers in one place. – David Carlisle Apr 7 '17 at 19:12
• "I wanted to use the letter ø in my document, and because there was no easy solution for this, someone told me to use the command \char28 to create this letter. " Really seems like you're asking the wrong question to me – Au101 Apr 7 '17 at 19:21

The standard command for ø in both plain tex and latex is \o or you can simply use ø if you are using the inputenc package. Using numbers should be a last resort and even then only use them to set up command definitions so if you change encoding you only have to change the numbers in one place.
However to answer the question as asked, use texdoc encguide to see the encodings known to latex