You want to get the ASCII number of a character, or you want to get the character given by an ASCII number.
1 2 3 4 5 | # Get the ASCII number of a character
number = ord(char)
# Get the character given by an ASCII number
char = chr(number)
|
For Unicode characters the builtin functions ord() and unichr() can be used.
Tags: text