chr(i) ASCII under Python 3

Dodo dodo_do_not_wake_up at yahoo.Fr
Mon Apr 26 22:12:09 CEST 2010


Hi all,
Under python 2.6, chr() "Return a string of one character whose ASCII 
code is the integer i." (quoted from docs.python.org)
Under python 3.1, chr() "Return the string of one character whose 
Unicode codepoint is the integer i."

I want to convert a ASCII code back to a character under python 3, not 
Unicode.

How can I do that?

Dorian



More information about the Python-list mailing list