Search notes:

Python: ord

ord returns the Unicode code point of a given character:
>>> ord('ö')
246
>>> chr(246)
'ö'

See also

Python: Built in functions

Index