Can't use unichr in Python 3.1
In Python 3, you just use chr
:
>>> chr(10000)
'✐'
In Python 3, there's no difference between unicode and normal strings anymore. Only between unicode strings and binary data. So the developers finally removed the unichr
function in favor of a common chr
which now does what the old unichr
did. See the documentation here.
Python 3.x doesn't have a special Unicode string type/class. Every string is a Unicode string. So... I'd try chr
. Should give you what unichr
did pre-3.x. Can't test, sadly.