[Tutor] unicode characters from integers?

Kent Johnson kent37 at tds.net
Wed Nov 9 21:04:25 CET 2005


Chris or Leslie Smith wrote:
> I know that chr() can be used to convert an integer into an ASCII
> character, but I am having a hard time trying to generate unicode
> characters from numbers. e.g. say I want to generate u'\u0950' from
> the integer 950, does anyone know if/how this can be done? 

unichr(950)

Kent



More information about the Tutor mailing list