Next / Previous / Contents / TCC Help System / NM Tech homepage

20.44. unichr(): Convert a numeric code to a Unicode character

Given a number n, this function returns the Unicode character that has code point n. For more on Unicode, see Section 10, “Type unicode: Strings of 32-bit characters”.

>>> unichr(0)
u'\x00'
>>> unichr(ord('A'))
u'A'
>>> unichr(0x3046)
u'\u3046'
>>> unichr(0xe0047)
u'\U000e0047'