What unicode character has a certain value?

Irmen de Jong irmen at NOSPAMREMOVETHISxs4all.nl
Tue Jul 23 18:58:30 EDT 2002


DogWalker wrote:

> If I have the decimal value for a unicode character, how do I convert it to
> a unicode character?  A unicode apostrophe has a decimal value of 8217. How
> do I get a string with an apostrophe starting with 8217?

s = u'\u2019'

note: 0x2019 is hex(8217)

Irmen




More information about the Python-list mailing list