On Fri, Jul 30, 2010 at 1:33 PM, Joel Goldstick <joel.goldst...@gmail.com>wrote:

> I was reading this: http://diveintopython.org/xml_processing/unicode.html
>
> and tried the exercise:
>
<snip>

> But oddly enough, when I typed it into my python shell I did NOT get the
> UnicodeError, and I wonder why not:
>

I believe that python is checking the encoding for stdout.  Try this:

print sys.stdout.encoding

When you attempt to print a unicode string, python will attempt to encode it
based on what it autodetected about your terminal.

-- 
Jerry
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to