codepoint

Get unicode code point of a character using Python

Get unicode code point of a character using Python Question: In Python API, is there a way to extract the unicode code point of a single character? Edit: In case it matters, I’m using Python 2.7. Asked By: SK9 || Source Answers: >>> ord(u”ć”) 263 >>> u”café”[2] u’f’ >>> u”café”[3] u’xe9′ >>> for c in …

Total answers: 5