in reply to is there an opposite to the chr function?
Yes. See ord.
Originally posted as a Categorized Answer.