Get unicode code point of a character using Python

If I understand your question correctly, you can do this.

>>> s="㈲"
>>> s.encode("unicode_escape")
b'\\u3232'

Shows the unicode escape code as a source string.

Leave a Comment