How do I display unicode value stored in a string variable using ord()

Terry Reedy tjreedy at udel.edu
Thu Aug 16 19:59:31 EDT 2012


a = '…'
print(ord(a))
 >>>
8230
Most things with unicode are easier in 3.x, and some are even better in 
3.3. The current beta is good enough for most informal work. 3.3.0 will 
be out in a month.

-- 
Terry Jan Reedy





More information about the Python-list mailing list