Printing Unicode characters

Chris Liechti cliechti at
Wed Aug 7 20:14:25 EDT 2002

Blistex <me at> wrote in 
news:pan.2002. at
> I'm testing how well my application handles Unicode characters and I have
> a snippet of code that looks like this:
> for x in range(0x20, 0x7F):
>      print u'\u%x' % (x)

you could use the builtin "unichr()" its like "chr()" but not only for 
ascii characters.

this works also: print u"%c" % (x)

> P.S.  I've been studying Python for a day and a half now and it's so
> clean compared to Perl, I love it.


Chris <cliechti at>

More information about the Python-list mailing list