WTF? Printing unicode strings

Robert Kern robert.kern at gmail.com
Fri May 19 12:32:28 EDT 2006


John Salerno wrote:

> AFAIK, I'm all ASCII (at least, I never made explicit changes to the 
> default Python install), so how am I able to print out the character?

Because sys.stdout.encoding isn't determined by your Python configuration, but
your terminal's.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the Python-list mailing list