I need to convert a letter to its index in the alphabet, and to its ASCII / Unicode index. And would like to have more than one way of achieving each of the cases (because I remember there are more than one), if possible.
First I wanted to convert a letter to its alphabet index (I remember some of the users here showed me how to do the conversion a while ago [either in the chat or in the comment section to one of the questions] but I didn't copy examples and forgot how to do it [I can't seem to find anything in the archives]), but then I decided to add ASCII- / Unicode-related index of a letter in the mix since this must be a quite similar procedure.
I recall something like
'\a to reference the character a but can't seem to make it work or remember exactly what it is used for. I'll be reading manuals shortly but in the meanwhile it made sense to ask the question since it may be faster.